commit | 72ae1736b33ea5bdeb3cdee7894bb0b1f7601ace | [log] [tgz] |
---|---|---|
author | Richard Trieu <rtrieu@google.com> | Thu Jun 20 23:21:54 2013 +0000 |
committer | Richard Trieu <rtrieu@google.com> | Thu Jun 20 23:21:54 2013 +0000 |
tree | 7e0f87915d0209d478c8d5f744ac0515f1d2f078 | |
parent | 2f7aa1902655f48f8f61d3cd3a3239703386cdd1 [diff] [blame] |
Add back a condition accidentially removed in r184470. llvm-svn: 184496
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp index deb1ba1..16b12ea 100644 --- a/clang/lib/Sema/SemaChecking.cpp +++ b/clang/lib/Sema/SemaChecking.cpp
@@ -608,7 +608,7 @@ return false; VariadicCallType CallType; - if (!Proto) { + if (!Proto || !Proto->isVariadic()) { CallType = VariadicDoesNotApply; } else if (Ty->isBlockPointerType()) { CallType = VariadicBlock;