Skip to content
Commit 7956da0f authored by Maksim Panchenko's avatar Maksim Panchenko
Browse files

[BOLT] Fix CFG in BinaryFunction::eraseInvalidBBs()

Summary:
When we erase invalid/unreachable basic blocks, we have to remove them
from a list of predecessors of regular blocks, otherwise the CFG will be
left in a broken state containing references to removed basic blocks.

(cherry picked from FBD7464292)
parent 0d729f21
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment