[Clang] Remove unnecessary Attr.isArgIdent checks.
authorFlorian Hahn <flo@fhahn.com>
Wed, 6 Jan 2021 14:59:27 +0000 (14:59 +0000)
committerFlorian Hahn <flo@fhahn.com>
Wed, 6 Jan 2021 18:01:41 +0000 (18:01 +0000)
commit7ef9139a391a6d526afab0216a97f9d65a6b5563
treea2bb763e93fda9353237a5ca3e5b920a110195f3
parent08e5e91e45af96e564f3c19be7ed4cb00bac3034
[Clang] Remove unnecessary Attr.isArgIdent checks.

The MatrixType, ExtVectorType, VectorSize and AddressSpace attributes
have arguments defined as ExprArguments in Attr.td. So their arguments
should never be ArgIdents and the logic to handle this case can be
removed.

The logic has been replaced by an assertion to ensure the arguments
are always ArgExpressions

Reviewed By: erichkeane

Differential Revision: https://reviews.llvm.org/D94092
clang/lib/Sema/SemaType.cpp