[llvm] r249854 - Clear SectionSymbols in MCContext::Reset
Keno Fischer via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 9 10:24:54 PDT 2015
Author: kfischer
Date: Fri Oct 9 12:24:54 2015
New Revision: 249854
URL: http://llvm.org/viewvc/llvm-project?rev=249854&view=rev
Log:
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/trunk/lib/MC/MCContext.cpp
Modified: llvm/trunk/lib/MC/MCContext.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCContext.cpp?rev=249854&r1=249853&r2=249854&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCContext.cpp (original)
+++ llvm/trunk/lib/MC/MCContext.cpp Fri Oct 9 12:24:54 2015
@@ -80,6 +80,7 @@ void MCContext::reset() {
UsedNames.clear();
Symbols.clear();
+ SectionSymbols.clear();
Allocator.Reset();
Instances.clear();
CompilationDir.clear();
More information about the llvm-commits
mailing list