[all-commits] [llvm/llvm-project] 43043a: Add element-type to the Vector TypeLoc types.

Erich Keane via All-commits all-commits at lists.llvm.org
Thu Jan 7 09:19:23 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 43043adcfbc60945646b791d7162e5a1307a5318
      https://github.com/llvm/llvm-project/commit/43043adcfbc60945646b791d7162e5a1307a5318
  Author: Erich Keane <erich.keane at intel.com>
  Date:   2021-01-07 (Thu, 07 Jan 2021)

  Changed paths:
    M clang/include/clang/AST/TypeLoc.h
    M clang/lib/Sema/SemaType.cpp
    M clang/lib/Sema/TreeTransform.h
    M clang/test/SemaCXX/vector.cpp

  Log Message:
  -----------
  Add element-type to the Vector TypeLoc types.

As shown by bug 48540, GCC vector types would cause a crash when the
declaration hada ParenType. This was because the walking of the
declaration would try to expand the 'inner' type, but there was no
ability to get it from the vector type.  This patch adds that element
type access to the vector type loc objects.

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




More information about the All-commits mailing list