diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2011-05-02 19:34:44 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2011-05-02 19:34:44 +0000 | 
| commit | 6b943ff3a3f8617113ecbf611cf0f8957e4e19d2 (patch) | |
| tree | fc5f365fb9035b2d0c622bbf06c9bbe8627d7279 /lib/Target/CppBackend/CPPBackend.cpp | |
| parent | d0e4e96dc17a6c1c6de3340842c80f0e187ba349 (diff) | |
Notes
Diffstat (limited to 'lib/Target/CppBackend/CPPBackend.cpp')
| -rw-r--r-- | lib/Target/CppBackend/CPPBackend.cpp | 6 | 
1 files changed, 2 insertions, 4 deletions
| diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp index 71d6049c8a1b..797cfd597e60 100644 --- a/lib/Target/CppBackend/CPPBackend.cpp +++ b/lib/Target/CppBackend/CPPBackend.cpp @@ -1348,12 +1348,10 @@ 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 << ");"; -    nl(Out) << iName << "->reserveOperandSpace(" -      << phi->getNumIncomingValues() -        << ");";      nl(Out);      for (unsigned i = 0; i < phi->getNumOperands(); i+=2) {        Out << iName << "->addIncoming(" | 
