[llvm-commits] [llvm] r80792 - /llvm/trunk/lib/AsmParser/LLParser.cpp

Nuno Lopes nunoplopes at sapo.pt
Wed Sep 2 08:02:57 PDT 2009


Author: nlopes
Date: Wed Sep  2 10:02:57 2009
New Revision: 80792

URL: http://llvm.org/viewvc/llvm-project?rev=80792&view=rev
Log:
plug another leak in LLParser::PerFunctionState::SetInstName()

Modified:
    llvm/trunk/lib/AsmParser/LLParser.cpp

Modified: llvm/trunk/lib/AsmParser/LLParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/AsmParser/LLParser.cpp?rev=80792&r1=80791&r2=80792&view=diff

==============================================================================
--- llvm/trunk/lib/AsmParser/LLParser.cpp (original)
+++ llvm/trunk/lib/AsmParser/LLParser.cpp Wed Sep  2 10:02:57 2009
@@ -1686,6 +1686,7 @@
         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);
     }
 





More information about the llvm-commits mailing list