[vm] Make UBSAN happy for the code in Range::BitwiseOp

Change-Id: I3f3ca03a0930f9feac1e7e94cdb5c50ece8d7856
Reviewed-on: https://dart-review.googlesource.com/c/79420
Commit-Queue: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Siva Annamalai <asiva@google.com>
Auto-Submit: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
This commit is contained in:
Alexander Markov 2018-10-11 20:02:53 +00:00 committed by commit-bot@chromium.org
parent e4c3fa0a9c
commit 6b67cd784b
2 changed files with 2 additions and 1 deletions

View file

@ -2296,7 +2296,7 @@ void Range::BitwiseOp(const Range* left_range,
*result_min = RangeBoundary::FromConstant(0);
} else {
*result_min =
RangeBoundary::FromConstant(-(static_cast<int64_t>(1) << bitsize));
RangeBoundary::FromConstant(-(static_cast<uint64_t>(1) << bitsize));
}
*result_max =

View file

@ -471,6 +471,7 @@ LibTest/io/Stdout/addStream_A01_t01: RuntimeError
LibTest/io/Stdout/add_A02_t07: RuntimeError
LibTest/io/WebSocket/connect_A01_t01: RuntimeError
LibTest/io/WebSocket/connect_A01_t02: RuntimeError
LibTest/isolate/Isolate/pause_A01_t01: Timeout, Pass
LibTest/isolate/Isolate/pause_A01_t02: Timeout, Pass
LibTest/isolate/Isolate/ping_A03_t01: RuntimeError, Pass
LibTest/isolate/Isolate/ping_A03_t02: RuntimeError, Pass