OSDN Git Service

Fix aux-target diagnostics for certain builtins
authorErich Keane <erich.keane@intel.com>
Tue, 19 May 2020 17:15:34 +0000 (10:15 -0700)
committerErich Keane <erich.keane@intel.com>
Tue, 19 May 2020 17:49:45 +0000 (10:49 -0700)
commit81a73fde5cea304d31294fd26c2f051f1685e97c
tree2dc024f8a331e25dc82c87d46fd7e109d014b769
parentccba60a784e72fd6cd35cfb6f6290fa553395027
Fix aux-target diagnostics for certain builtins

When I fixed the targets specific builtins to make sure that aux-targets
are checked, it seems I didn't consider cases where the builtins check
the target info for further info.  This patch bubbles the target-info
down to the individual checker functions to ensure that they validate
against the aux-target as well.

For non-aux-target invocations, this is an NFC.
clang/include/clang/Sema/Sema.h
clang/lib/Sema/SemaChecking.cpp
clang/test/Sema/check-aux-builtins.c