Skip to content

Commit

Permalink
Merging r249854:
Browse files Browse the repository at this point in the history
------------------------------------------------------------------------
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

------------------------------------------------------------------------

llvm-svn: 252802
  • Loading branch information
tstellarAMD committed Nov 11, 2015
1 parent 818402c commit 3685ebc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/lib/MC/MCContext.cpp
Expand Up @@ -82,6 +82,7 @@ void MCContext::reset() {

UsedNames.clear();
Symbols.clear();
SectionSymbols.clear();
Allocator.Reset();
Instances.clear();
CompilationDir.clear();
Expand Down

0 comments on commit 3685ebc

Please sign in to comment.