[Sema] Fix `ExtVectorElementExpr` tree transform for the `isArrow` case.
authorMichele Scandale <michele.scandale@gmail.com>
Tue, 11 Oct 2022 20:28:59 +0000 (13:28 -0700)
committerMichele Scandale <michele.scandale@gmail.com>
Tue, 11 Oct 2022 20:29:20 +0000 (13:29 -0700)
commitc49cde6467f9bf200640db763152a9dc7f009520
tree8476c0fbf6b7baebe6055416683b99dd398e802f
parent52c7ffbe2e938992c925e539f5006c90a2bad4af
[Sema] Fix `ExtVectorElementExpr` tree transform for the `isArrow` case.

Make sure we propagate the value for `IsArrow` to
`RebuildExtVectorElementExpr` in order to be able to handle correctly
vector component accesses where the base value is a pointer.

Reviewed By: rjmccall

Differential Revision: https://reviews.llvm.org/D131698
clang/lib/Sema/TreeTransform.h
clang/test/SemaTemplate/instantiate-clang.cpp