aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/CloneFunction.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-07-19 13:32:40 +0000
committerJay Foad <jay.foad@gmail.com>2011-07-19 13:32:40 +0000
commitf4b14a2b0d0130e07944e59ac23c21578b62729e (patch)
tree35dad24b339ecc9a4203a0704391126890c5dbe2 /llvm/lib/Transforms/Utils/CloneFunction.cpp
parentf1b800998a768b05770c69c3ca53b868428b36ac (diff)
downloadllvm-f4b14a2b0d0130e07944e59ac23c21578b62729e.zip
llvm-f4b14a2b0d0130e07944e59ac23c21578b62729e.tar.gz
llvm-f4b14a2b0d0130e07944e59ac23c21578b62729e.tar.bz2
Use ArrayRef in ConstantFoldInstOperands and ConstantFoldCall.
llvm-svn: 135477
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneFunction.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/CloneFunction.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/CloneFunction.cpp b/llvm/lib/Transforms/Utils/CloneFunction.cpp
index 6ea831f..6d6661e 100644
--- a/llvm/lib/Transforms/Utils/CloneFunction.cpp
+++ b/llvm/lib/Transforms/Utils/CloneFunction.cpp
@@ -338,8 +338,7 @@ ConstantFoldMappedInstruction(const Instruction *I) {
return ConstantFoldLoadThroughGEPConstantExpr(GV->getInitializer(),
CE);
- return ConstantFoldInstOperands(I->getOpcode(), I->getType(), &Ops[0],
- Ops.size(), TD);
+ return ConstantFoldInstOperands(I->getOpcode(), I->getType(), Ops, TD);
}
/// CloneAndPruneFunctionInto - This works exactly like CloneFunctionInto,