Implement semantic checking for __builtin_signbit.
authorAaron Ballman <aaron@aaronballman.com>
Tue, 19 Jun 2018 14:59:11 +0000 (14:59 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 19 Jun 2018 14:59:11 +0000 (14:59 +0000)
commitdd0e2b01ae58f3b5c9cf8adfd016c9d239458955
treec6d2c36ea794259cf2324350d304eed408a6c352
parent68d5064beb0993fe3898f111fa6e7ff358bbe082
Implement semantic checking for __builtin_signbit.

r242675 changed the signature for the signbit builtin but did not introduce proper semantic checking to ensure the arguments are as-expected. This patch groups the signbit builtin along with the other fp classification builtins. Fixes PR28172.

llvm-svn: 335050
clang/lib/Sema/SemaChecking.cpp
clang/test/Sema/builtins.c