r184496 - Add back a condition accidentially removed in r184470.

Richard Trieu rtrieu at google.com
Thu Jun 20 16:21:54 PDT 2013


Author: rtrieu
Date: Thu Jun 20 18:21:54 2013
New Revision: 184496

URL: http://llvm.org/viewvc/llvm-project?rev=184496&view=rev
Log:
Add back a condition accidentially removed in r184470.

Modified:
    cfe/trunk/lib/Sema/SemaChecking.cpp

Modified: cfe/trunk/lib/Sema/SemaChecking.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaChecking.cpp?rev=184496&r1=184495&r2=184496&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaChecking.cpp (original)
+++ cfe/trunk/lib/Sema/SemaChecking.cpp Thu Jun 20 18:21:54 2013
@@ -608,7 +608,7 @@ bool Sema::CheckPointerCall(NamedDecl *N
     return false;
 
   VariadicCallType CallType;
-  if (!Proto) {
+  if (!Proto || !Proto->isVariadic()) {
     CallType = VariadicDoesNotApply;
   } else if (Ty->isBlockPointerType()) {
     CallType = VariadicBlock;





More information about the cfe-commits mailing list