]> granicus.if.org Git - llvm/commit
Fix a crash in InstCombine where we could try to truncate a switch comparison to...
authorOwen Anderson <resistor@mac.com>
Tue, 10 Mar 2015 06:51:39 +0000 (06:51 +0000)
committerOwen Anderson <resistor@mac.com>
Tue, 10 Mar 2015 06:51:39 +0000 (06:51 +0000)
commit3a3665fd38a3522f5c014d36d8dd0943dd5762d2
tree1c62ea2382b62dcfae9c6b4af5fc0ec1ebb32e67
parentbb6a88c25d6586cec20dafd2bddf0387748eecc9
Fix a crash in InstCombine where we could try to truncate a switch comparison to zero width.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231761 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstructionCombining.cpp
test/Transforms/InstCombine/switch-truncate-crash.ll [new file with mode: 0644]