[all-commits] [llvm/llvm-project] 09f831: [Sema] a[x] has type T when a has type T* or T[], ...

Sam McCall via All-commits all-commits at lists.llvm.org
Thu Dec 30 16:30:56 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 09f8315bba391eac1dbdfbdc3fd654c0c0cbe3e7
      https://github.com/llvm/llvm-project/commit/09f8315bba391eac1dbdfbdc3fd654c0c0cbe3e7
  Author: Sam McCall <sam.mccall at gmail.com>
  Date:   2021-12-31 (Fri, 31 Dec 2021)

  Changed paths:
    M clang/lib/Sema/SemaExpr.cpp
    M clang/test/AST/ast-dump-array.cpp

  Log Message:
  -----------
  [Sema] a[x] has type T when a has type T* or T[], even when T is dependent

This more precise type is useful for tools, e.g.
fixes https://github.com/clangd/clangd/issues/831

Differential Revision: https://reviews.llvm.org/D107275




More information about the All-commits mailing list