Clear InsnsBeginScopeSet and InsnsEndScopeSet at the end of function.
authorDevang Patel <dpatel@apple.com>
Fri, 9 Apr 2010 16:04:20 +0000 (16:04 +0000)
committerDevang Patel <dpatel@apple.com>
Fri, 9 Apr 2010 16:04:20 +0000 (16:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100867 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfDebug.cpp

index 7969374c2cac9307d5b1d1c6426bb8f60881ea90..7fed0c5162e0abd7fbed43529fef9552bc046bcf 100644 (file)
@@ -2342,6 +2342,8 @@ void DwarfDebug::endFunction(const MachineFunction *MF) {
   // Clear debug info
   CurrentFnDbgScope = NULL;
   DeleteContainerSeconds(DbgScopeMap);
+  InsnsBeginScopeSet.clear();
+  InsnsEndScopeSet.clear();
   DbgValueStartMap.clear();
   ConcreteScopes.clear();
   DeleteContainerSeconds(AbstractScopes);