Error instead of assert when making a _BitInt vector
authorAaron Ballman <aaron@aaronballman.com>
Wed, 3 Aug 2022 18:05:09 +0000 (14:05 -0400)
committerAaron Ballman <aaron@aaronballman.com>
Wed, 3 Aug 2022 18:05:09 +0000 (14:05 -0400)
commitc9edf843fcf954132271214445857498fb47bb72
tree8c64de4b8feafb5ec502346cf6e9ac613be5af5b
parent71e8f796013cbe52658041473e3a6b233c56bce5
Error instead of assert when making a _BitInt vector

We already correctly rejected:
typedef __attribute__((vector_size(16))) _BitInt(4) Ty;

but we would assert with:
typedef __attribute__((ext_vector_type(4))) _BitInt(4) Ty;

Now we issue the same error in both cases.
clang/docs/ReleaseNotes.rst
clang/lib/Sema/SemaType.cpp
clang/test/SemaCXX/ext-int.cpp