Fix iterator corruption in splitBasicBlockBefore
We should not delete block predecessors (via replacing successors of terminators) while iterating them, otherwise we may skip some of them. Instead, save predecessors to a separate vector and iterate over it.
parent
7154f89c
Please register or sign in to comment