From a4993778f65212f01168c857cf3043e99ba85c9f Mon Sep 17 00:00:00 2001 From: Richard Trieu Date: Thu, 20 Jun 2013 23:21:54 +0000 Subject: [PATCH] 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 --- lib/Sema/SemaChecking.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0