summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2013-06-20 23:21:54 +0000
committerRichard Trieu <rtrieu@google.com>2013-06-20 23:21:54 +0000
commit72ae1736b33ea5bdeb3cdee7894bb0b1f7601ace (patch)
tree7e0f87915d0209d478c8d5f744ac0515f1d2f078
parent2f7aa1902655f48f8f61d3cd3a3239703386cdd1 (diff)
downloadbcm5719-llvm-72ae1736b33ea5bdeb3cdee7894bb0b1f7601ace.tar.gz
bcm5719-llvm-72ae1736b33ea5bdeb3cdee7894bb0b1f7601ace.zip
Add back a condition accidentially removed in r184470.
llvm-svn: 184496
-rw-r--r--clang/lib/Sema/SemaChecking.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp
index deb1ba1ba76..16b12ea91e1 100644
--- a/clang/lib/Sema/SemaChecking.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud