diff options
author | Jay Foad <jay.foad@gmail.com> | 2011-07-19 13:32:40 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2011-07-19 13:32:40 +0000 |
commit | 1d2f569c3428d70d0cf690c9adb459ad4a3ecff2 (patch) | |
tree | c1b9fd82505e2166d8915ad15a821ce06bbab312 /lib/Transforms/Utils/CloneFunction.cpp | |
parent | c8007ab582c49bb6d165e09e6279e441af985ecf (diff) |
Use ArrayRef in ConstantFoldInstOperands and ConstantFoldCall.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135477 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/CloneFunction.cpp')
-rw-r--r-- | lib/Transforms/Utils/CloneFunction.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/CloneFunction.cpp b/lib/Transforms/Utils/CloneFunction.cpp index 6ea831f534..6d6661e825 100644 --- a/lib/Transforms/Utils/CloneFunction.cpp +++ b/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, |