diff options
author | Richard Trieu <rtrieu@google.com> | 2013-06-20 23:21:54 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2013-06-20 23:21:54 +0000 |
commit | 72ae1736b33ea5bdeb3cdee7894bb0b1f7601ace (patch) | |
tree | 7e0f87915d0209d478c8d5f744ac0515f1d2f078 /clang | |
parent | 2f7aa1902655f48f8f61d3cd3a3239703386cdd1 (diff) | |
download | bcm5719-llvm-72ae1736b33ea5bdeb3cdee7894bb0b1f7601ace.tar.gz bcm5719-llvm-72ae1736b33ea5bdeb3cdee7894bb0b1f7601ace.zip |
Add back a condition accidentially removed in r184470.
llvm-svn: 184496
Diffstat (limited to 'clang')
-rw-r--r-- | clang/lib/Sema/SemaChecking.cpp | 2 |
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; |