projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove some support for ReturnInsts with multiple operands, and for
[oota-llvm.git]
/
lib
/
Transforms
/
IPO
/
IPConstantPropagation.cpp
diff --git
a/lib/Transforms/IPO/IPConstantPropagation.cpp
b/lib/Transforms/IPO/IPConstantPropagation.cpp
index c7c293987a5890fad04400ed664225d1ef891670..25c01346642bc01c307901b406487530b00616c0 100644
(file)
--- 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);