summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-01-30 23:14:52 +0000
committerChris Lattner <sabre@nondot.org>2007-01-30 23:14:52 +0000
commit6fc4b46d439269b602a77cf3c5460b7913d468aa (patch)
tree3f30e9d7bfac84378d2ed201f3944f694213aede
parent2c4610e4cadf0c877117052fb6b3bdc01091166b (diff)
downloadbcm5719-llvm-6fc4b46d439269b602a77cf3c5460b7913d468aa.tar.gz
bcm5719-llvm-6fc4b46d439269b602a77cf3c5460b7913d468aa.zip
adjust to api change
llvm-svn: 33671
-rw-r--r--llvm/lib/Transforms/IPO/GlobalOpt.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/GlobalOpt.cpp b/llvm/lib/Transforms/IPO/GlobalOpt.cpp
index 02a3d08c055..c0cb15ffffa 100644
--- a/llvm/lib/Transforms/IPO/GlobalOpt.cpp
+++ b/llvm/lib/Transforms/IPO/GlobalOpt.cpp
@@ -1775,7 +1775,8 @@ 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)) {
+ if (Constant *C = ConstantFoldCall(Callee, &Formals[0],
+ Formals.size())) {
InstResult = C;
} else {
return false;
OpenPOWER on IntegriCloud