summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CppBackend/CPPBackend.cpp
diff options
context:
space:
mode:
authorNicolas Geoffray <nicolas.geoffray@lip6.fr>2011-04-10 17:39:40 +0000
committerNicolas Geoffray <nicolas.geoffray@lip6.fr>2011-04-10 17:39:40 +0000
commit9137ee85de8958d45844d9cb6fafae4695e2dc0f (patch)
tree878566a544eaac7f22b44c9c3ad441ea9f68c5cd /llvm/lib/Target/CppBackend/CPPBackend.cpp
parentdbe99ba37d661c22e18af01ef1e0ccaa01ca0a0e (diff)
downloadbcm5719-llvm-9137ee85de8958d45844d9cb6fafae4695e2dc0f.tar.gz
bcm5719-llvm-9137ee85de8958d45844d9cb6fafae4695e2dc0f.zip
Bugfix in the Cpp backend after API change on PHINode::Create.
llvm-svn: 129248
Diffstat (limited to 'llvm/lib/Target/CppBackend/CPPBackend.cpp')
-rw-r--r--llvm/lib/Target/CppBackend/CPPBackend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp
index 38de3b6888f..797cfd597e6 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<PHINode>(I);
Out << "PHINode* " << iName << " = PHINode::Create("
- << getCppName(phi->getType()) << ", \""
+ << getCppName(phi->getType()) << ", "
<< phi->getNumIncomingValues() << ", \"";
printEscapedString(phi->getName());
Out << "\", " << bbname << ");";
OpenPOWER on IntegriCloud