Simplify this code.

llvm-svn: 89702
This commit is contained in:
Dan Gohman 2009-11-23 21:30:55 +00:00
parent 2e3f187cbd
commit 3650f4ed0c
1 changed files with 1 additions and 1 deletions

View File

@ -1854,7 +1854,7 @@ void DwarfDebug::beginScope(const MachineInstr *MI, unsigned Label) {
InsnToDbgScopeMapTy::iterator I = DbgScopeBeginMap.find(MI);
if (I == DbgScopeBeginMap.end())
return;
ScopeVector &SD = DbgScopeBeginMap[MI];
ScopeVector &SD = I->second;
for (ScopeVector::iterator SDI = SD.begin(), SDE = SD.end();
SDI != SDE; ++SDI)
(*SDI)->setStartLabelID(Label);