aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/DeclSpec.cpp
diff options
context:
space:
mode:
authorMariya Podchishchaeva <mariya.podchishchaeva@intel.com>2024-12-12 12:19:48 +0100
committerGitHub <noreply@github.com>2024-12-12 12:19:48 +0100
commit1d65c35ce16f1bc340649ac8319b34c833e23a1f (patch)
tree40cc611e33421ba7c4916fac66c04639c2d22b76 /clang/lib/Sema/DeclSpec.cpp
parenta480d5172215ce8e49b492e5c0295de1f397954d (diff)
downloadllvm-1d65c35ce16f1bc340649ac8319b34c833e23a1f.zip
llvm-1d65c35ce16f1bc340649ac8319b34c833e23a1f.tar.gz
llvm-1d65c35ce16f1bc340649ac8319b34c833e23a1f.tar.bz2
[clang] Reject `_Complex _BitInt` (#119402)
The C standard doesn't require support for these types and Codegen for these types is incorrect ATM. See https://github.com/llvm/llvm-project/issues/119352
Diffstat (limited to 'clang/lib/Sema/DeclSpec.cpp')
-rw-r--r--clang/lib/Sema/DeclSpec.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Sema/DeclSpec.cpp b/clang/lib/Sema/DeclSpec.cpp
index ee237ff..4764468 100644
--- a/clang/lib/Sema/DeclSpec.cpp
+++ b/clang/lib/Sema/DeclSpec.cpp
@@ -1343,8 +1343,7 @@ void DeclSpec::Finish(Sema &S, const PrintingPolicy &Policy) {
S.getLocForEndOfToken(getTypeSpecComplexLoc()),
" double");
TypeSpecType = TST_double; // _Complex -> _Complex double.
- } else if (TypeSpecType == TST_int || TypeSpecType == TST_char ||
- TypeSpecType == TST_bitint) {
+ } else if (TypeSpecType == TST_int || TypeSpecType == TST_char) {
// Note that this intentionally doesn't include _Complex _Bool.
if (!S.getLangOpts().CPlusPlus)
S.Diag(TSTLoc, diag::ext_integer_complex);