forked from OSchip/llvm-project
Narrow test further. Make bot and test happy.
llvm-svn: 149650
This commit is contained in:
parent
7815f56b22
commit
1df8cdc588
|
@ -1108,7 +1108,9 @@ bool InstCombiner::transformConstExprCastCall(CallSite CS) {
|
||||||
// If both the callee and the cast type are varargs, we still have to make
|
// 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
|
// sure the number of fixed parameters are the same or we have the same
|
||||||
// ABI issues as if we introduce a varargs call.
|
// 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())
|
cast<FunctionType>(APTy->getElementType())->getNumParams())
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue