]> granicus.if.org Git - llvm/commitdiff
Merging r249854:
authorTom Stellard <thomas.stellard@amd.com>
Wed, 11 Nov 2015 21:00:37 +0000 (21:00 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Wed, 11 Nov 2015 21:00:37 +0000 (21:00 +0000)
------------------------------------------------------------------------
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

index c601c56f3952d1406f24ab1954d989af18758466..a85796cfbad90e167691e68c810cb0ac56db81bc 100644 (file)
@@ -82,6 +82,7 @@ void MCContext::reset() {
 
   UsedNames.clear();
   Symbols.clear();
+  SectionSymbols.clear();
   Allocator.Reset();
   Instances.clear();
   CompilationDir.clear();