diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2015-11-11 21:00:37 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2015-11-11 21:00:37 +0000 |
commit | aa717db387a5f48dca60a88b0046624e41ff7b13 (patch) | |
tree | 14f0315350ebcbfcff08037c4a4842bac580a771 | |
parent | 402fb0d06dfc92c2da12b061e11c16cec2404cb9 (diff) | |
download | llvm-aa717db387a5f48dca60a88b0046624e41ff7b13.tar.gz |
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
------------------------------------------------------------------------
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_37@252802 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/MC/MCContext.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/MC/MCContext.cpp b/lib/MC/MCContext.cpp index c601c56f3952..a85796cfbad9 100644 --- a/lib/MC/MCContext.cpp +++ b/lib/MC/MCContext.cpp @@ -82,6 +82,7 @@ void MCContext::reset() { UsedNames.clear(); Symbols.clear(); + SectionSymbols.clear(); Allocator.Reset(); Instances.clear(); CompilationDir.clear(); |