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)
commit58364dc4dac58fbf0a3bb7cbf54d9bc9dfed550c
tree0c50a71ffc75b1339b101bdd7a1aa0a52fed39f5
parente90f992b219850f06ea6c236e73de4c6725a3dd7
Fix a crash in InstCombine where we could try to truncate a switch comparison to zero width.

llvm-svn: 231761
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
llvm/test/Transforms/InstCombine/switch-truncate-crash.ll [new file with mode: 0644]