mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-22 20:20:03 +00:00
adjust to api change
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33671 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9fa038dc21
commit
6c1f56574c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user