summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser/LLParser.cpp
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2009-09-02 15:02:57 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2009-09-02 15:02:57 +0000
commit2baa6a38d203373360e5d9be11049ed001271bd9 (patch)
treed54f1cc8185f23720e1b241a0a001f31cc90923c /llvm/lib/AsmParser/LLParser.cpp
parentda6b0fa8ed6cac277299affee83afc586bafd8c6 (diff)
downloadbcm5719-llvm-2baa6a38d203373360e5d9be11049ed001271bd9.tar.gz
bcm5719-llvm-2baa6a38d203373360e5d9be11049ed001271bd9.zip
plug another leak in LLParser::PerFunctionState::SetInstName()
llvm-svn: 80792
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.cpp')
-rw-r--r--llvm/lib/AsmParser/LLParser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index 3d2e3125aa1..3ef4aaf6498 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -1686,6 +1686,7 @@ bool LLParser::PerFunctionState::SetInstName(int NameID,
return P.Error(NameLoc, "instruction forward referenced with type '" +
FI->second.first->getType()->getDescription() + "'");
FI->second.first->replaceAllUsesWith(Inst);
+ delete FI->second.first;
ForwardRefValIDs.erase(FI);
}
OpenPOWER on IntegriCloud