Add element-type to the Vector TypeLoc types.
authorErich Keane <erich.keane@intel.com>
Thu, 17 Dec 2020 20:09:11 +0000 (12:09 -0800)
committerErich Keane <erich.keane@intel.com>
Thu, 7 Jan 2021 17:14:36 +0000 (09:14 -0800)
commit43043adcfbc60945646b791d7162e5a1307a5318
tree34ae5d3e2d061367f0ca07179409384c6841518c
parentacbb3652931a735a861b756075b1cc86fd041761
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
clang/include/clang/AST/TypeLoc.h
clang/lib/Sema/SemaType.cpp
clang/lib/Sema/TreeTransform.h
clang/test/SemaCXX/vector.cpp