Author: tstellar
Date: Wed Nov 11 15:00:37 2015
New Revision: 252802

URL: http://llvm.org/viewvc/llvm-project?rev=252802&view=rev
Log:
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

------------------------------------------------------------------------

Modified:
    llvm/branches/release_37/lib/MC/MCContext.cpp

Modified: llvm/branches/release_37/lib/MC/MCContext.cpp
URL: 
http://llvm.org/viewvc/llvm-project/llvm/branches/release_37/lib/MC/MCContext.cpp?rev=252802&r1=252801&r2=252802&view=diff
==============================================================================
--- llvm/branches/release_37/lib/MC/MCContext.cpp (original)
+++ llvm/branches/release_37/lib/MC/MCContext.cpp Wed Nov 11 15:00:37 2015
@@ -82,6 +82,7 @@ void MCContext::reset() {
 
   UsedNames.clear();
   Symbols.clear();
+  SectionSymbols.clear();
   Allocator.Reset();
   Instances.clear();
   CompilationDir.clear();


_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to