Add back a condition accidentially removed in r184470.

llvm-svn: 184496
This commit is contained in:
Richard Trieu 2013-06-20 23:21:54 +00:00
parent 2f7aa19026
commit 72ae1736b3
1 changed files with 1 additions and 1 deletions

View File

@ -608,7 +608,7 @@ bool Sema::CheckPointerCall(NamedDecl *NDecl, CallExpr *TheCall,
return false;
VariadicCallType CallType;
if (!Proto) {
if (!Proto || !Proto->isVariadic()) {
CallType = VariadicDoesNotApply;
} else if (Ty->isBlockPointerType()) {
CallType = VariadicBlock;