diff options
author | Nuno Lopes <nunoplopes@sapo.pt> | 2009-09-02 15:02:57 +0000 |
---|---|---|
committer | Nuno Lopes <nunoplopes@sapo.pt> | 2009-09-02 15:02:57 +0000 |
commit | 2b4f28e270c5091a7e70991adc3e36aff0c85b0e (patch) | |
tree | 605da222ca974ddeb56c1558d0ae593328e15790 | |
parent | 793d4a8467841aed21564bf6704421e8f83431fb (diff) |
plug another leak in LLParser::PerFunctionState::SetInstName()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80792 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/AsmParser/LLParser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp index 3d2e3125aa..3ef4aaf649 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); } |