From: Richard Trieu Date: Thu, 20 Jun 2013 23:21:54 +0000 (+0000) Subject: Add back a condition accidentially removed in r184470. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a4993778f65212f01168c857cf3043e99ba85c9f;p=clang Add back a condition accidentially removed in r184470. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184496 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaChecking.cpp b/lib/Sema/SemaChecking.cpp index deb1ba1ba7..16b12ea91e 100644 --- a/lib/Sema/SemaChecking.cpp +++ b/lib/Sema/SemaChecking.cpp @@ -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;