From aa717db387a5f48dca60a88b0046624e41ff7b13 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Wed, 11 Nov 2015 21:00:37 +0000 Subject: [PATCH] Merging r249854: ------------------------------------------------------------------------ r249854 | kfischer | 2015-10-09 13:24:54 -0400 (Fri, 09 Oct 2015) | 11 lines 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 ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_37@252802 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/MC/MCContext.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/MC/MCContext.cpp b/lib/MC/MCContext.cpp index c601c56f395..a85796cfbad 100644 --- a/lib/MC/MCContext.cpp +++ b/lib/MC/MCContext.cpp @@ -82,6 +82,7 @@ void MCContext::reset() { UsedNames.clear(); Symbols.clear(); + SectionSymbols.clear(); Allocator.Reset(); Instances.clear(); CompilationDir.clear(); -- 2.50.1