summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitf4b14a2b0d0130e07944e59ac23c21578b62729e (patch)
tree35dad24b339ecc9a4203a0704391126890c5dbe2 /llvm/lib/Transforms/IPO
parentf1b800998a768b05770c69c3ca53b868428b36ac (diff)
downloadbcm5719-llvm-f4b14a2b0d0130e07944e59ac23c21578b62729e.tar.gz
bcm5719-llvm-f4b14a2b0d0130e07944e59ac23c21578b62729e.zip
Use ArrayRef in ConstantFoldInstOperands and ConstantFoldCall.
llvm-svn: 135477
Diffstat (limited to 'llvm/lib/Transforms/IPO')
-rw-r--r--llvm/lib/Transforms/IPO/GlobalOpt.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/GlobalOpt.cpp b/llvm/lib/Transforms/IPO/GlobalOpt.cpp
index 25eed51fd5b..d817b6ed4aa 100644
--- a/llvm/lib/Transforms/IPO/GlobalOpt.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud