diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-06-05 12:23:34 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-06-06 19:51:13 -0700 |
| commit | f35328caed68528380cf5f19e4c04eba70f03638 (patch) | |
| tree | b84e254f133ab642f0a935be3366bc9e06c0bb57 /src/rustllvm/RustWrapper.cpp | |
| parent | 9fd075f5af12afe91a6be7398cfc85b2903c28bb (diff) | |
| download | rust-f35328caed68528380cf5f19e4c04eba70f03638.tar.gz rust-f35328caed68528380cf5f19e4c04eba70f03638.zip | |
rustc: Avoid UB with signed division/remainder
Division and remainder by 0 are undefined behavior, and are detected at runtime. This commit adds support for ensuring that MIN / -1 is also checked for at runtime, as this would cause signed overflow, or undefined behvaior. Closes #8460
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
