adjust to api change

llvm-svn: 33671
This commit is contained in:
Chris Lattner 2007-01-30 23:14:52 +00:00
parent 2c4610e4ca
commit 6fc4b46d43
1 changed files with 2 additions and 1 deletions

View File

@ -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;