summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCContext.cpp
diff options
context:
space:
mode:
authorKeno Fischer <kfischer@college.harvard.edu>2015-10-09 17:24:54 +0000
committerKeno Fischer <kfischer@college.harvard.edu>2015-10-09 17:24:54 +0000
commit21a7f23666e7717fe2a1164de79b45dca4a443ef (patch)
treeb7991aa12e16f49dcf2015bf06b177319ace5ff6 /llvm/lib/MC/MCContext.cpp
parent697fdf891c50f50a504574dfc46a5a832b10ccc6 (diff)
downloadbcm5719-llvm-21a7f23666e7717fe2a1164de79b45dca4a443ef.tar.gz
bcm5719-llvm-21a7f23666e7717fe2a1164de79b45dca4a443ef.zip
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 llvm-svn: 249854
Diffstat (limited to 'llvm/lib/MC/MCContext.cpp')
-rw-r--r--llvm/lib/MC/MCContext.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCContext.cpp b/llvm/lib/MC/MCContext.cpp
index ff195d0ad80..2160b4ee80d 100644
--- a/llvm/lib/MC/MCContext.cpp
+++ b/llvm/lib/MC/MCContext.cpp
@@ -80,6 +80,7 @@ void MCContext::reset() {
UsedNames.clear();
Symbols.clear();
+ SectionSymbols.clear();
Allocator.Reset();
Instances.clear();
CompilationDir.clear();
OpenPOWER on IntegriCloud