diff options
| author | Roman Lebedev <lebedev.ri@gmail.com> | 2021-05-19 11:31:53 +0300 |
|---|---|---|
| committer | Roman Lebedev <lebedev.ri@gmail.com> | 2021-05-19 11:32:24 +0300 |
| commit | 729e18cbf498fb9b95fd672691ee8c7b7926f674 (patch) | |
| tree | 3fc639f5ba1b6bf26789cfc936da5c547901ff31 /llvm/tools/llvm-objcopy/CopyConfig.cpp | |
| parent | 9f36306cc9ac6d1d1019831d40865d0d54563379 (diff) | |
| download | llvm-729e18cbf498fb9b95fd672691ee8c7b7926f674.zip llvm-729e18cbf498fb9b95fd672691ee8c7b7926f674.tar.gz llvm-729e18cbf498fb9b95fd672691ee8c7b7926f674.tar.bz2 | |
[NFCI] SimplifyCFGPass: mergeEmptyReturnBlocks(): use DeleteDeadBlocks()
In this case, it does the same thing as the original pattern does.
SimplifyCFG has a few lurking miscompilations about deleting blocks that
have their address taken, and consistently using DeleteDeadBlocks() instead
of a hand-rolled pattern will allow to weed those cases out easierly.
Diffstat (limited to 'llvm/tools/llvm-objcopy/CopyConfig.cpp')
0 files changed, 0 insertions, 0 deletions
