aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/DeclSpec.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard@metafoo.co.uk>2020-07-22 13:34:07 -0700
committerRichard Smith <richard@metafoo.co.uk>2020-07-22 13:43:10 -0700
commit6c18f7db73a08f1ae39a76a86b414c5b0c24ee86 (patch)
tree13aae01209b5663e609990cbb6f9fc9385512673 /clang/lib/Sema/DeclSpec.cpp
parentdfecad4ccfe64ca4d8cffba72785a1304399d4d2 (diff)
downloadllvm-6c18f7db73a08f1ae39a76a86b414c5b0c24ee86.zip
llvm-6c18f7db73a08f1ae39a76a86b414c5b0c24ee86.tar.gz
llvm-6c18f7db73a08f1ae39a76a86b414c5b0c24ee86.tar.bz2
For PR46800, implement the GCC __builtin_complex builtin.
glibc's implementation of the CMPLX macro uses it (with -fgnuc-version set to 4.7 or later).
Diffstat (limited to 'clang/lib/Sema/DeclSpec.cpp')
-rw-r--r--clang/lib/Sema/DeclSpec.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/DeclSpec.cpp b/clang/lib/Sema/DeclSpec.cpp
index f4c30c9..f553b5c 100644
--- a/clang/lib/Sema/DeclSpec.cpp
+++ b/clang/lib/Sema/DeclSpec.cpp
@@ -1279,6 +1279,7 @@ void DeclSpec::Finish(Sema &S, const PrintingPolicy &Policy) {
S.Diag(TSTLoc, diag::ext_integer_complex);
} else if (TypeSpecType != TST_float && TypeSpecType != TST_double &&
TypeSpecType != TST_float128) {
+ // FIXME: _Float16, __fp16?
S.Diag(TSCLoc, diag::err_invalid_complex_spec)
<< getSpecifierName((TST)TypeSpecType, Policy);
TypeSpecComplex = TSC_unspecified;