diff options
| author | Derek Schuff <dschuff@google.com> | 2012-10-26 19:52:27 +0000 | 
|---|---|---|
| committer | Derek Schuff <dschuff@google.com> | 2012-10-26 19:52:27 +0000 | 
| commit | 8f5eff7e76491f39c62455d97cf8f704631e54d7 (patch) | |
| tree | 11954f2bb4723614a1b28375bf425ba13006f297 /clang/lib/Frontend/CompilerInvocation.cpp | |
| parent | e0d9db99532c4b8eda0d57a4b3ccc00d2b019a15 (diff) | |
| download | llvm-8f5eff7e76491f39c62455d97cf8f704631e54d7.zip llvm-8f5eff7e76491f39c62455d97cf8f704631e54d7.tar.gz llvm-8f5eff7e76491f39c62455d97cf8f704631e54d7.tar.bz2 | |
Stop APInt::shl from generating llvm.trap
APInt::shl generated llvm.trap to guard against shifts greater than bit-width.
This was already checked with an assert, and there was a special case for
shifts equal to bit-width. Modify this check to catch shifts greater than or
equal to bit-width, so llvm.trap isn't generated.
Patch contributed by JF Bastien
llvm-svn: 166803
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
