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/CodeGen/CodeGenModule.cpp | |
parent | e0d9db99532c4b8eda0d57a4b3ccc00d2b019a15 (diff) | |
download | bcm5719-llvm-8f5eff7e76491f39c62455d97cf8f704631e54d7.tar.gz bcm5719-llvm-8f5eff7e76491f39c62455d97cf8f704631e54d7.zip |
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/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions