From 9137ee85de8958d45844d9cb6fafae4695e2dc0f Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Sun, 10 Apr 2011 17:39:40 +0000 Subject: [PATCH] Bugfix in the Cpp backend after API change on PHINode::Create. llvm-svn: 129248 --- llvm/lib/Target/CppBackend/CPPBackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp index 38de3b6888f0..797cfd597e60 100644 --- a/llvm/lib/Target/CppBackend/CPPBackend.cpp +++ b/llvm/lib/Target/CppBackend/CPPBackend.cpp @@ -1348,7 +1348,7 @@ void CppWriter::printInstruction(const Instruction *I, const PHINode* phi = cast(I); Out << "PHINode* " << iName << " = PHINode::Create(" - << getCppName(phi->getType()) << ", \"" + << getCppName(phi->getType()) << ", " << phi->getNumIncomingValues() << ", \""; printEscapedString(phi->getName()); Out << "\", " << bbname << ");";