summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-01-11 18:52:33 +0000
committerDevang Patel <dpatel@apple.com>2010-01-11 18:52:33 +0000
commit8992323bb9c16e8a5600cf78cd8a9fcbfed116b5 (patch)
tree38ce240f20ab1994dd96496d17b9a6bee8789e0b /llvm/lib/CodeGen
parentbb91767b824cf1b78cb551c308ca51f8da4e4377 (diff)
downloadbcm5719-llvm-8992323bb9c16e8a5600cf78cd8a9fcbfed116b5.tar.gz
bcm5719-llvm-8992323bb9c16e8a5600cf78cd8a9fcbfed116b5.zip
s/NextValueNo/NextMDValueNo while processing metadata.
llvm-svn: 93165
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index f02410c8c49..1ef3befe0bc 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -2138,13 +2138,14 @@ void DwarfDebug::endFunction(MachineFunction *MF) {
}
// Clear debug info
- CurrentFnDbgScope = NULL;
- DbgScopeMap.clear();
- DbgScopeBeginMap.clear();
- DbgScopeEndMap.clear();
- ConcreteScopes.clear();
- AbstractScopesList.clear();
-
+ if (CurrentFnDbgScope) {
+ CurrentFnDbgScope = NULL;
+ DbgScopeMap.clear();
+ DbgScopeBeginMap.clear();
+ DbgScopeEndMap.clear();
+ ConcreteScopes.clear();
+ AbstractScopesList.clear();
+ }
Lines.clear();
if (TimePassesIsEnabled)
OpenPOWER on IntegriCloud