From 2b4f28e270c5091a7e70991adc3e36aff0c85b0e Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Wed, 2 Sep 2009 15:02:57 +0000 Subject: [PATCH] plug another leak in LLParser::PerFunctionState::SetInstName() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80792 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AsmParser/LLParser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp index 3d2e3125aa1..3ef4aaf6498 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); } -- 2.11.0