[llvm-branch-commits] [llvm-branch] r252802 - Merging r249854:

Tom Stellard via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Nov 11 13:00:38 PST 2015


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();




More information about the llvm-branch-commits mailing list