]> granicus.if.org Git - clang/commitdiff
Add back a condition accidentially removed in r184470.
authorRichard Trieu <rtrieu@google.com>
Thu, 20 Jun 2013 23:21:54 +0000 (23:21 +0000)
committerRichard Trieu <rtrieu@google.com>
Thu, 20 Jun 2013 23:21:54 +0000 (23:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184496 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaChecking.cpp

index deb1ba1ba76fe19fd5d6f499d5c5ab9fadf41aed..16b12ea91e10dbfc5f12f14f4990ccac13f75e74 100644 (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;