From f386da0aec8d126ea09dc532c0442444aa77c5a6 Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Mon, 21 Apr 2008 21:31:55 +0000 Subject: [PATCH] fix some residual old API that fell thru the cracks of the conversion script, closes http://llvm.org/bugs/show_bug.cgi?id=2246 llvm-svn: 50062 --- llvm/tools/llvm2cpp/CppWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/tools/llvm2cpp/CppWriter.cpp b/llvm/tools/llvm2cpp/CppWriter.cpp index f4ed2a460a5f..2c5418a84fe6 100644 --- a/llvm/tools/llvm2cpp/CppWriter.cpp +++ b/llvm/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 << ");"; -- GitLab