summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-05-21 23:48:15 +0000
committerBill Wendling <isanbard@gmail.com>2013-05-21 23:48:15 +0000
commit5a262f36de62a36dae129e48918f3289714d4aaf (patch)
tree697af4847d373548bd8d7032f2ebf64a218568d0
parent595bc150b4c13f739c9bd587290d6406f2f177b4 (diff)
downloadllvm-5a262f36de62a36dae129e48918f3289714d4aaf.tar.gz
llvm-5a262f36de62a36dae129e48918f3289714d4aaf.tar.bz2
llvm-5a262f36de62a36dae129e48918f3289714d4aaf.tar.xz
Merging r181363:
------------------------------------------------------------------------ r181363 | cdavis | 2013-05-07 14:14:15 -0700 (Tue, 07 May 2013) | 3 lines MCStreamer: Also clear vector of W64UnwindInfos on reset(). Patch by Kai Nacke! ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_33@182439 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/MC/MCStreamer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/MC/MCStreamer.cpp b/lib/MC/MCStreamer.cpp
index 4839c3470c..8f1895e048 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;