instcombine: disable optimization of 'invoke null/undef'. I'll move this functionali...
authorNuno Lopes <nunoplopes@sapo.pt>
Thu, 21 Jun 2012 23:52:14 +0000 (23:52 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Thu, 21 Jun 2012 23:52:14 +0000 (23:52 +0000)
commitf1fb6c836940d1b92c0e3df27f4c9ca6569ff968
tree2de20a8abffeb2ef17a3aeeb7617b488f82fc91b
parent55eda324c4c5591e00306bfaa701b049a74e569e
instcombine:  disable optimization of 'invoke null/undef'. I'll move this functionality to SimplifyCFG (since we cannot make changes to the CFG here).
Fixes the crashes with the attached test case

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