aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2015-04-24 20:57:56 +0000
committerHans Wennborg <hans@hanshq.net>2015-04-24 20:57:56 +0000
commit86ac630585e8bd92739d6ef5edca664387efc27e (patch)
tree2043fa8c207aa410d6d7bece3241a0e78eaa7956 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent4472b776b0c3a564385322ba5dcb7e2673d59a89 (diff)
downloadllvm-86ac630585e8bd92739d6ef5edca664387efc27e.zip
llvm-86ac630585e8bd92739d6ef5edca664387efc27e.tar.gz
llvm-86ac630585e8bd92739d6ef5edca664387efc27e.tar.bz2
SimplifyCFG: Correctly handle switch lookup tables which fully cover the input type and use bit tests to check for holes
When using bit tests for hole checks, we call AddPredecessorToBlock to give the phi node a value from the bit test block. This would break if we've previously called removePredecessor on the default destination because the switch is fully covered. Test case by Mark Lacey. llvm-svn: 235771
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions