HomePhabricator

[NFCI] SimplifyCFGPass: mergeEmptyReturnBlocks(): use DeleteDeadBlocks()

Authored by lebedev.ri on May 19 2021, 1:31 AM.

Description

[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.

Details

Committed
lebedev.riMay 19 2021, 1:32 AM
Parents
rG9f36306cc9ac: [clang-tidy] Fix a crash on invalid code for memset-usage check.
Branches
Unknown
Tags
Unknown