about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorJoe Richey <joerichey@google.com>2020-05-26 02:00:02 -0700
committerJoe Richey <joerichey@google.com>2020-05-26 02:06:18 -0700
commit71ef8414bd86cbd79b29f8b1a0145da96e2f2f09 (patch)
tree2b38328d2118540ee6bef35088a29382b4ea985c /src/rustllvm/RustWrapper.cpp
parent6367b544b781889abee296d34d2b7d353a6ae0f8 (diff)
downloadrust-71ef8414bd86cbd79b29f8b1a0145da96e2f2f09.tar.gz
rust-71ef8414bd86cbd79b29f8b1a0145da96e2f2f09.zip
Add checks and tests for computing abs(offset_bytes)
The previous code paniced if offset_bytes == i64::MIN. This commit:
  - Properly computes the absoulte value to avoid this panic
  - Adds a test for this edge case

Signed-off-by: Joe Richey <joerichey@google.com>
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions