From 58837339ac130fbb4a0d1c6456584d7b6d933b71 Mon Sep 17 00:00:00 2001 From: Nuno Lopes <nunoplopes@sapo.pt> Date: Wed, 2 Sep 2009 15:02:57 +0000 Subject: 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(+) (limited to 'lib/AsmParser') 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); } -- cgit v1.1