projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
969c1a3
)
Clear SectionSymbols in MCContext::Reset
author
Keno Fischer
<kfischer@college.harvard.edu>
Fri, 9 Oct 2015 17:24:54 +0000
(17:24 +0000)
committer
Keno Fischer
<kfischer@college.harvard.edu>
Fri, 9 Oct 2015 17:24:54 +0000
(17:24 +0000)
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/trunk@249854
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/MC/MCContext.cpp
patch
|
blob
|
history
diff --git
a/lib/MC/MCContext.cpp
b/lib/MC/MCContext.cpp
index ff195d0ad80377c22a207061456ab99076444e93..2160b4ee80d65fec18bda809d72a824b7c860940 100644
(file)
--- a/
lib/MC/MCContext.cpp
+++ b/
lib/MC/MCContext.cpp
@@
-80,6
+80,7
@@
void MCContext::reset() {
UsedNames.clear();
Symbols.clear();
+ SectionSymbols.clear();
Allocator.Reset();
Instances.clear();
CompilationDir.clear();