Files
clang-p2996/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
Roman Lebedev 5d4f37e895 [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.
2021-08-20 13:28:08 +03:00

256 KiB