| commit | ae229d599b8ccf5475fbdf2459fc54f2cce3dec7 | [log] [tgz] |
|---|---|---|
| author | Chad Rosier <mcrosier@apple.com> | Tue Jan 29 23:31:22 2013 +0000 |
| committer | Chad Rosier <mcrosier@apple.com> | Tue Jan 29 23:31:22 2013 +0000 |
| tree | 29d57285b3689ce43fe6d800e68e6a2caea116a6 | |
| parent | 01edb9d7d1888604e1b46183a2e82c1c7142d379 [diff] |
[ubsan] Implement the -fcatch-undefined-behavior flag using a trapping implementation; this is much more inline with the original implementation (i.e., pre-ubsan) and does not require run-time library support. The trapping implementation can be invoked using either '-fcatch-undefined-behavior' or '-fsanitize=undefined-trap -fsanitize-undefined-trap-on-error', with the latter being preferred. Eventually, the -fcatch-undefined-behavior' flag will be removed. llvm-svn: 173848