mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-13 00:10:37 +00:00
adjust to api change
llvm-svn: 33671
This commit is contained in:
parent
659afcca15
commit
58e09aa521
@ -1775,7 +1775,8 @@ static bool EvaluateFunction(Function *F, Constant *&RetVal,
|
|||||||
|
|
||||||
if (Callee->isDeclaration()) {
|
if (Callee->isDeclaration()) {
|
||||||
// If this is a function we can constant fold, do it.
|
// 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;
|
InstResult = C;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user