More complete solution to deleting blocks and debug info.
llvm-svn: 31129
diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp
index 0752e3c..4643c74 100644
--- a/llvm/lib/CodeGen/BranchFolding.cpp
+++ b/llvm/lib/CodeGen/BranchFolding.cpp
@@ -75,7 +75,7 @@
I != E; ++I) {
if ((unsigned)I->getOpcode() == DWARF_LABELOpc) {
// The label ID # is always operand #0, an immediate.
- MDI->RemoveLabelInfo(I->getOperand(0).getImm());
+ MDI->InvalidateLabel(I->getOperand(0).getImm());
}
}
}