Bugfix in the Cpp backend after API change on PHINode::Create.
authorNicolas Geoffray <nicolas.geoffray@lip6.fr>
Sun, 10 Apr 2011 17:39:40 +0000 (17:39 +0000)
committerNicolas Geoffray <nicolas.geoffray@lip6.fr>
Sun, 10 Apr 2011 17:39:40 +0000 (17:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129248 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/CppBackend/CPPBackend.cpp

index 38de3b6888f0536b49b581e3a84abdad3ab13ace..797cfd597e602211b46991e17a9bceb6b18ca073 100644 (file)
@@ -1348,7 +1348,7 @@ void CppWriter::printInstruction(const Instruction *I,
     const PHINode* phi = cast<PHINode>(I);
 
     Out << "PHINode* " << iName << " = PHINode::Create("
-        << getCppName(phi->getType()) << ", \""
+        << getCppName(phi->getType()) << ", "
         << phi->getNumIncomingValues() << ", \"";
     printEscapedString(phi->getName());
     Out << "\", " << bbname << ");";