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.
Details
Details
- Reviewers
fhahn rjmccall - Commits
- rG43043adcfbc6: Add element-type to the Vector TypeLoc types.
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/include/clang/AST/TypeLoc.h | ||
---|---|---|
1756 | Can we reuse/unify this with MatrixTypeLoc? And then have MatrixTypeLoc just deal with the row/column operands. |
clang/include/clang/AST/TypeLoc.h | ||
---|---|---|
1756 | Since these have to be ConcreteTypeLocs, I don't think the matrix type can directly inherit from it, but it can do something very similar. |
Comment Actions
LGTM, thanks
clang/include/clang/AST/TypeLoc.h | ||
---|---|---|
1756 | Oh right, that's a shame, given there already is a MatrixTypeLoc, which essentially does the same thing, but it also carries locations for the row and column operands. |
Can we reuse/unify this with MatrixTypeLoc? And then have MatrixTypeLoc just deal with the row/column operands.