diff options
| author | Joe Richey <joerichey@google.com> | 2020-05-26 02:00:02 -0700 |
|---|---|---|
| committer | Joe Richey <joerichey@google.com> | 2020-05-26 02:06:18 -0700 |
| commit | 71ef8414bd86cbd79b29f8b1a0145da96e2f2f09 (patch) | |
| tree | 2b38328d2118540ee6bef35088a29382b4ea985c /src/rustllvm/RustWrapper.cpp | |
| parent | 6367b544b781889abee296d34d2b7d353a6ae0f8 (diff) | |
| download | rust-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
