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.
Loading
Please sign in to comment