diff options
Diffstat (limited to 'tools/llvm2cpp')
-rw-r--r-- | tools/llvm2cpp/CppWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm2cpp/CppWriter.cpp b/tools/llvm2cpp/CppWriter.cpp index f4ed2a460a..2c5418a84f 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<PHINode>(I); - Out << "PHINode* " << iName << " = new PHINode(" + Out << "PHINode* " << iName << " = PHINode::Create(" << getCppName(phi->getType()) << ", \""; printEscapedString(phi->getName()); Out << "\", " << bbname << ");"; |