Revert r133513:
[oota-llvm.git] / lib / Target / CppBackend / CPPBackend.cpp
index 0d15514d8cf84bcf21856e822a960fa87ce92f62..2ba773bd5e54d5ccbbfc90923986a283c1014e98 100644 (file)
@@ -1356,7 +1356,7 @@ void CppWriter::printInstruction(const Instruction *I,
     for (unsigned i = 0; i < phi->getNumIncomingValues(); ++i) {
       Out << iName << "->addIncoming("
           << opNames[PHINode::getOperandNumForIncomingValue(i)] << ", "
-          << getOpName(phi->getIncomingBlock(i)) << ");";
+          << opNames[PHINode::getOperandNumForIncomingBlock(i)] << ");";
       nl(Out);
     }
     break;