Remove some support for ReturnInsts with multiple operands, and for
[oota-llvm.git] / lib / Transforms / IPO / IPConstantPropagation.cpp
index c7c293987a5890fad04400ed664225d1ef891670..25c01346642bc01c307901b406487530b00616c0 100644 (file)
@@ -186,7 +186,7 @@ bool IPCP::PropagateConstantReturn(Function &F) {
         // Find the returned value
         Value *V;
         if (!STy)
-          V = RI->getOperand(i);
+          V = RI->getOperand(0);
         else
           V = FindInsertedValue(RI->getOperand(0), i);