aboutsummaryrefslogtreecommitdiff
path: root/lib/Target
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/SparcV9/SparcV9PrologEpilogInserter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/SparcV9/SparcV9PrologEpilogInserter.cpp b/lib/Target/SparcV9/SparcV9PrologEpilogInserter.cpp
index a763f53ee8..fc88353547 100644
--- a/lib/Target/SparcV9/SparcV9PrologEpilogInserter.cpp
+++ b/lib/Target/SparcV9/SparcV9PrologEpilogInserter.cpp
@@ -130,6 +130,7 @@ void InsertPrologEpilogCode::InsertEpilogCode(Function *F)
while (termMvec.back()->getOpCode() == NOP)
{
assert( termMvec.back() == bbMvec.back());
+ delete termMvec.back();
termMvec.pop_back();
bbMvec.pop_back();
++numNOPs;