================
@@ -13639,12 +13639,21 @@ StmtResult
TreeTransform<Derived>::TransformUnresolvedSYCLKernelCallStmt(
template <typename Derived>
ExprResult TreeTransform<Derived>::TransformCXXReflectExpr(CXXReflectExpr *E) {
- // TODO(reflection): Implement its transform
-
switch (E->getKind()) {
case ReflectionKind::Type: {
- TypeSourceInfo *NewT = getDerived().TransformType(
- const_cast<TypeSourceInfo *>(E->getTypeSourceInfo()));
+ auto *TSI = const_cast<TypeSourceInfo *>(E->getTypeSourceInfo());
+ TypeSourceInfo *NewT;
+
+ // Rebuild the entire TypeLoc if this is an alias; for alias template
+ // specializations, what determines identity is the template arguments
+ // (and the identity of the alias declaration), not the canonical type.
----------------
ojhunt wrote:
Probably a dumb question: is clone cached (or even cacheable at all?)
https://github.com/llvm/llvm-project/pull/232074
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits