Narrow test further. Make bot and test happy.

llvm-svn: 149650
This commit is contained in:
Jim Grosbach 2012-02-03 00:26:07 +00:00
parent 7815f56b22
commit 1df8cdc588
1 changed files with 3 additions and 1 deletions

View File

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