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
This commit is contained in:
Keno Fischer 2015-10-09 17:24:54 +00:00
parent 697fdf891c
commit 21a7f23666
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,7 @@ void MCContext::reset() {
UsedNames.clear();
Symbols.clear();
SectionSymbols.clear();
Allocator.Reset();
Instances.clear();
CompilationDir.clear();