[NFC] Sema: use checkArgCount instead of custom checking
authorJF Bastien <jfbastien@apple.com>
Tue, 28 Jul 2020 20:35:03 +0000 (13:35 -0700)
committerJF Bastien <jfbastien@apple.com>
Tue, 28 Jul 2020 20:41:06 +0000 (13:41 -0700)
commit389f009c5757cf09c0b2d77a15b3b541fb0f2a1c
treecf2ac34b0b4c0568d4cea23ecde5ad3df32fef54
parente9b236f411c5683d270a381bf810ba3c8f3ed12c
[NFC] Sema: use checkArgCount instead of custom checking

 As requested in D79279.

Differential Revision: https://reviews.llvm.org/D84666
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaChecking.cpp
clang/test/CodeGen/builtins-ppc-error.c
clang/test/SemaOpenCL/to_addr_builtin.cl