summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-11-23 21:30:55 +0000
committerDan Gohman <gohman@apple.com>2009-11-23 21:30:55 +0000
commit3650f4ed0cb90e8ae3bcae841241d03a4a36b0eb (patch)
treeff0febdf5ae069bab9bd7cc29f43c25d336f5c6e /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parent2e3f187cbd542ec5f8f01efc40ff80bfa3ce7602 (diff)
downloadbcm5719-llvm-3650f4ed0cb90e8ae3bcae841241d03a4a36b0eb.tar.gz
bcm5719-llvm-3650f4ed0cb90e8ae3bcae841241d03a4a36b0eb.zip
Simplify this code.
llvm-svn: 89702
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 45675836289..f1b9c8ac8fa 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -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);
OpenPOWER on IntegriCloud