aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
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
commitb7074b01d29d5a727e8b496664148e3a4e96c7e3 (patch)
tree4c875aa74d6213bad1edc4b382ae8a56bb9b3821 /lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parent5729c500109c23887d4c83dfcca45ae18da9e769 (diff)
downloadexternal_llvm-b7074b01d29d5a727e8b496664148e3a4e96c7e3.zip
external_llvm-b7074b01d29d5a727e8b496664148e3a4e96c7e3.tar.gz
external_llvm-b7074b01d29d5a727e8b496664148e3a4e96c7e3.tar.bz2
s/NextValueNo/NextMDValueNo while processing metadata.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93165 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index f02410c..1ef3bef 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/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)