Update LabelsBeforeInsn also, when creating unknown-position labels.

llvm-svn: 103145
This commit is contained in:
Dan Gohman 2010-05-06 00:29:41 +00:00
parent e902956f59
commit 47d04e3e41
1 changed files with 5 additions and 0 deletions

View File

@ -2162,6 +2162,11 @@ void DwarfDebug::beginScope(const MachineInstr *MI) {
PrevInstLoc = DL;
PrevLabel = Label;
}
// If this instruction begins a scope then note down corresponding label.
if (InsnsBeginScopeSet.count(MI) != 0)
LabelsBeforeInsn[MI] = Label;
return;
}