[all-commits] [llvm/llvm-project] 7ef913: [Clang] Remove unnecessary Attr.isArgIdent checks.

Florian Hahn via All-commits all-commits at lists.llvm.org
Wed Jan 6 10:06:32 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7ef9139a391a6d526afab0216a97f9d65a6b5563
      https://github.com/llvm/llvm-project/commit/7ef9139a391a6d526afab0216a97f9d65a6b5563
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2021-01-06 (Wed, 06 Jan 2021)

  Changed paths:
    M clang/lib/Sema/SemaType.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list