Skip to content

Commit

Permalink
Clear SectionSymbols in MCContext::Reset
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Keno committed Oct 9, 2015
1 parent 697fdf8 commit 21a7f23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/lib/MC/MCContext.cpp
Expand Up @@ -80,6 +80,7 @@ void MCContext::reset() {

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

0 comments on commit 21a7f23

Please sign in to comment.