aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-04-04 07:44:02 +0000
committerJay Foad <jay.foad@gmail.com>2011-04-04 07:44:02 +0000
commit3e2f74e6d6dbc07563ba8ee9ffd2a230514929fb (patch)
treeb7bb4321e8005fe01d6b6fe1684e19a6ffafcbfb /lib/Transforms
parentcc5d992bc167ded99b039ed8fdde190a586a1562 (diff)
Remove some support for ReturnInsts with multiple operands, and for
returning a scalar value in a function whose return type is a single- element structure or array. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128810 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/IPO/IPConstantPropagation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/IPConstantPropagation.cpp b/lib/Transforms/IPO/IPConstantPropagation.cpp
index c7c293987a..25c0134664 100644
--- a/lib/Transforms/IPO/IPConstantPropagation.cpp
+++ b/lib/Transforms/IPO/IPConstantPropagation.cpp
@@ -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);