PR12967: Don't crash when trying to fold a shift that's larger than the type's size.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 27 May 2012 22:03:32 +0000 (22:03 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 27 May 2012 22:03:32 +0000 (22:03 +0000)
commit65195411ccb18ea8327d3eabdfa980eaf535d929
tree63d38f1d5c8b92d1ecfe92cb17bc5eafc49e6eaa
parent5acc40a0373ed183d944b4f165dbb0b6798d5a92
PR12967: Don't crash when trying to fold a shift that's larger than the type's size.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157548 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineShifts.cpp
test/Transforms/InstCombine/2012-05-27-Negative-Shift-Crash.ll [new file with mode: 0644]