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/IPO | |
parent | c8007ab582c49bb6d165e09e6279e441af985ecf (diff) | |
download | external_llvm-1d2f569c3428d70d0cf690c9adb459ad4a3ecff2.zip external_llvm-1d2f569c3428d70d0cf690c9adb459ad4a3ecff2.tar.gz external_llvm-1d2f569c3428d70d0cf690c9adb459ad4a3ecff2.tar.bz2 |
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/IPO')
-rw-r--r-- | lib/Transforms/IPO/GlobalOpt.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/GlobalOpt.cpp b/lib/Transforms/IPO/GlobalOpt.cpp index 25eed51..d817b6e 100644 --- a/lib/Transforms/IPO/GlobalOpt.cpp +++ b/lib/Transforms/IPO/GlobalOpt.cpp @@ -2465,8 +2465,7 @@ static bool EvaluateFunction(Function *F, Constant *&RetVal, if (Callee->isDeclaration()) { // If this is a function we can constant fold, do it. - if (Constant *C = ConstantFoldCall(Callee, Formals.data(), - Formals.size())) { + if (Constant *C = ConstantFoldCall(Callee, Formals)) { InstResult = C; } else { return false; |