aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AsmParser
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
commit58837339ac130fbb4a0d1c6456584d7b6d933b71 (patch)
tree605da222ca974ddeb56c1558d0ae593328e15790 /lib/AsmParser
parent2c6e434dc05bbb5cf3eac56dce1ad05d6c97e77f (diff)
downloadexternal_llvm-58837339ac130fbb4a0d1c6456584d7b6d933b71.zip
external_llvm-58837339ac130fbb4a0d1c6456584d7b6d933b71.tar.gz
external_llvm-58837339ac130fbb4a0d1c6456584d7b6d933b71.tar.bz2
plug another leak in LLParser::PerFunctionState::SetInstName()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80792 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser')
-rw-r--r--lib/AsmParser/LLParser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp
index 3d2e312..3ef4aaf 100644
--- a/lib/AsmParser/LLParser.cpp
+++ b/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);
}