about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-06-05 12:23:34 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-06-06 19:51:13 -0700
commitf35328caed68528380cf5f19e4c04eba70f03638 (patch)
treeb84e254f133ab642f0a935be3366bc9e06c0bb57 /src/rustllvm/RustWrapper.cpp
parent9fd075f5af12afe91a6be7398cfc85b2903c28bb (diff)
downloadrust-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