summaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO
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
commit1d2f569c3428d70d0cf690c9adb459ad4a3ecff2 (patch)
treec1b9fd82505e2166d8915ad15a821ce06bbab312 /lib/Transforms/IPO
parentc8007ab582c49bb6d165e09e6279e441af985ecf (diff)
downloadllvm-1d2f569c3428d70d0cf690c9adb459ad4a3ecff2.tar.gz
llvm-1d2f569c3428d70d0cf690c9adb459ad4a3ecff2.tar.bz2
llvm-1d2f569c3428d70d0cf690c9adb459ad4a3ecff2.tar.xz
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.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/GlobalOpt.cpp b/lib/Transforms/IPO/GlobalOpt.cpp
index 25eed51fd5..d817b6ed4a 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;