diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index fc3201d9204..cd4fd768ba9 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1812,7 +1812,7 @@ void DwarfDebug::SetDbgScopeBeginLabels(const MachineInstr *MI, unsigned Label) /// end with this machine instruction. void DwarfDebug::SetDbgScopeEndLabels(const MachineInstr *MI, unsigned Label) { InsnToDbgScopeMapTy::iterator I = DbgScopeEndMap.find(MI); - if (I == DbgScopeBeginMap.end()) + if (I == DbgScopeEndMap.end()) return; SmallVector &SD = I->second; for (SmallVector::iterator SDI = SD.begin(), SDE = SD.end();