[PATCH] D92101: [Clang][Sema] Attempt to fix CTAD faulty copy of non-local typedefs
Richard Smith - zygoloid via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 2 18:35:20 PST 2020
rsmith accepted this revision.
rsmith added a comment.
This revision is now accepted and ready to land.
Looks good with a minor cleanup. Thanks!
================
Comment at: clang/lib/Sema/SemaTemplate.cpp:2081-2085
TypeLocBuilder InnerTLB;
QualType Transformed =
TransformType(InnerTLB, OrigDecl->getTypeSourceInfo()->getTypeLoc());
TypeSourceInfo *TSI =
TransformType(InnerTLB.getTypeSourceInfo(Context, Transformed));
----------------
We only need to transform the underlying type of the typedef if we're cloning the typedef.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D92101/new/
https://reviews.llvm.org/D92101
More information about the cfe-commits
mailing list