mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
Narrow test further. Make bot and test happy.
llvm-svn: 149650
This commit is contained in:
parent
6c70b7e9a5
commit
68e59a434c
@ -1108,7 +1108,9 @@ bool InstCombiner::transformConstExprCastCall(CallSite CS) {
|
||||
// If both the callee and the cast type are varargs, we still have to make
|
||||
// sure the number of fixed parameters are the same or we have the same
|
||||
// ABI issues as if we introduce a varargs call.
|
||||
if (FT->getNumParams() !=
|
||||
if (FT->isVarArg() &&
|
||||
cast<FunctionType>(APTy->getElementType())->isVarArg() &&
|
||||
FT->getNumParams() !=
|
||||
cast<FunctionType>(APTy->getElementType())->getNumParams())
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user