aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2021-08-20 13:17:56 +0300
committerRoman Lebedev <lebedev.ri@gmail.com>2021-08-20 13:28:08 +0300
commit5d4f37e895487408e61498ec42e545ec5f778b5b (patch)
tree38b7ab90d1ea94f59441c0f62793edf1cb3245a6 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent94c495295135dd45a0b67a5b6d6c3c318f4f8628 (diff)
downloadllvm-5d4f37e895487408e61498ec42e545ec5f778b5b.zip
llvm-5d4f37e895487408e61498ec42e545ec5f778b5b.tar.gz
llvm-5d4f37e895487408e61498ec42e545ec5f778b5b.tar.bz2
[NFCI][SimplifyCFG] Rewrite `createUnreachableSwitchDefault()`
The only thing that function should do as per it's semantic, is to ensure that the switch's default is a block consisting only of an `unreachable` terminator. So let's just create such a block and update switch's default to point to it. There should be no need for all this weird dance around predecessors/successors.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions