commit | 9c276ae0f24d4cee8f7954069d4b8eae45d0447d | [log] [tgz] |
---|---|---|
author | Mike Stump <mrs@apple.com> | Sat Dec 12 01:27:46 2009 +0000 |
committer | Mike Stump <mrs@apple.com> | Sat Dec 12 01:27:46 2009 +0000 |
tree | 967ccefb7c10869562faaa2dd6f5b9feb43c8ce7 | |
parent | 498eb7ece2a5699e215acf071040de27d7882931 [diff] |
Implement runtime checks for undefined behavior. WIP. This implements a new flag -fcatch-undefined-behavior. The flag turns on additional runtime checks for: T a[I]; a[i] abort when i < 0 or i >= I. Future stuff includes shifts by >= bitwidth amounts. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91198 91177308-0d34-0410-b5e6-96231b3b80d8