diff options
author | Charles Davis <cdavis5x@gmail.com> | 2013-05-07 21:14:15 +0000 |
---|---|---|
committer | Charles Davis <cdavis5x@gmail.com> | 2013-05-07 21:14:15 +0000 |
commit | 8cb6b971601d42a27e40f0f1d4828671441989f5 (patch) | |
tree | 9511bfdc32a21b196971897e2fc73a405855143e /lib/MC | |
parent | 32ec93d431c54b6227a978201813398ffaaeff17 (diff) | |
download | external_llvm-8cb6b971601d42a27e40f0f1d4828671441989f5.zip external_llvm-8cb6b971601d42a27e40f0f1d4828671441989f5.tar.gz external_llvm-8cb6b971601d42a27e40f0f1d4828671441989f5.tar.bz2 |
MCStreamer: Also clear vector of W64UnwindInfos on reset().
Patch by Kai Nacke!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181363 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r-- | lib/MC/MCStreamer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/MC/MCStreamer.cpp b/lib/MC/MCStreamer.cpp index 4839c34..8f1895e 100644 --- a/lib/MC/MCStreamer.cpp +++ b/lib/MC/MCStreamer.cpp @@ -35,6 +35,7 @@ MCStreamer::~MCStreamer() { void MCStreamer::reset() { for (unsigned i = 0; i < getNumW64UnwindInfos(); ++i) delete W64UnwindInfos[i]; + W64UnwindInfos.clear(); EmitEHFrame = true; EmitDebugFrame = false; CurrentW64UnwindInfo = 0; |