diff options
| author | Roman Lebedev <lebedev.ri@gmail.com> | 2021-08-20 13:17:56 +0300 |
|---|---|---|
| committer | Roman Lebedev <lebedev.ri@gmail.com> | 2021-08-20 13:28:08 +0300 |
| commit | 5d4f37e895487408e61498ec42e545ec5f778b5b (patch) | |
| tree | 38b7ab90d1ea94f59441c0f62793edf1cb3245a6 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 94c495295135dd45a0b67a5b6d6c3c318f4f8628 (diff) | |
[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
