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 | 58837339ac130fbb4a0d1c6456584d7b6d933b71 (patch) | |
tree | 605da222ca974ddeb56c1558d0ae593328e15790 /lib/AsmParser | |
parent | 2c6e434dc05bbb5cf3eac56dce1ad05d6c97e77f (diff) | |
download | external_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.cpp | 1 |
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); } |