From: Gabor Greif Date: Mon, 21 Apr 2008 21:31:55 +0000 (+0000) Subject: fix some residual old API that fell thru the cracks of the conversion script, closes... X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=f1f12f91e804d77ed301d006a412c169966e8ac9;p=oota-llvm.git fix some residual old API that fell thru the cracks of the conversion script, closes llvm.org/bugs/show_bug.cgi?id=2246 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50062 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm2cpp/CppWriter.cpp b/tools/llvm2cpp/CppWriter.cpp index f4ed2a460a5..2c5418a84fe 100644 --- a/tools/llvm2cpp/CppWriter.cpp +++ b/tools/llvm2cpp/CppWriter.cpp @@ -1315,7 +1315,7 @@ CppWriter::printInstruction(const Instruction *I, const std::string& bbname) { case Instruction::PHI: { const PHINode* phi = cast(I); - Out << "PHINode* " << iName << " = new PHINode(" + Out << "PHINode* " << iName << " = PHINode::Create(" << getCppName(phi->getType()) << ", \""; printEscapedString(phi->getName()); Out << "\", " << bbname << ");";