From bd17478f2f6dd3630c4e2fafaa71e2424e08c96e Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Tue, 22 Mar 2011 01:03:24 +0000 Subject: [PATCH] Clear map after use. This is likely to fix the segfault in llvm-gcc-x86_64-darwin10-cross-mingw32. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128051 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index d65270edf6e..c775c38f702 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -3050,6 +3050,7 @@ void DwarfDebug::endFunction(const MachineFunction *MF) { DbgVariableToDbgInstMap.clear(); DeleteContainerSeconds(DbgScopeMap); InsnsNeedsLabelAfter.clear(); + RegClobberInsn.clear(); ConcreteScopes.clear(); DeleteContainerSeconds(AbstractScopes); AbstractScopesList.clear(); -- 2.34.1