From 21a7f23666e7717fe2a1164de79b45dca4a443ef Mon Sep 17 00:00:00 2001 From: Keno Fischer Date: Fri, 9 Oct 2015 17:24:54 +0000 Subject: [PATCH] Clear SectionSymbols in MCContext::Reset This was just forgotten when SectionSymbols was introduced and could cause corruption if the MCContext was reused after Reset. Reviewers: rafael Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D13547 llvm-svn: 249854 --- llvm/lib/MC/MCContext.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/MC/MCContext.cpp b/llvm/lib/MC/MCContext.cpp index ff195d0ad803..2160b4ee80d6 100644 --- a/llvm/lib/MC/MCContext.cpp +++ b/llvm/lib/MC/MCContext.cpp @@ -80,6 +80,7 @@ void MCContext::reset() { UsedNames.clear(); Symbols.clear(); + SectionSymbols.clear(); Allocator.Reset(); Instances.clear(); CompilationDir.clear();