[clang] [Clang] Bugfixes and improved support for `AttributedType`s in lambdas (PR #85325)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 19 08:48:50 PDT 2024
================
@@ -7231,12 +7226,16 @@ QualType TreeTransform<Derived>::TransformAttributedType(
// FIXME: dependent operand expressions?
if (getDerived().AlwaysRebuild() ||
modifiedType != oldType->getModifiedType()) {
- TypeLocBuilder AuxiliaryTLB;
- AuxiliaryTLB.reserve(TL.getFullDataSize());
- QualType equivalentType =
- getDerived().TransformType(AuxiliaryTLB, TL.getEquivalentTypeLoc());
- if (equivalentType.isNull())
- return QualType();
+ // Do not transform the equivalent type if it is equal to the modified type.
----------------
AaronBallman wrote:
It'd be better to explain *why* we don't want to transform (that we don't transform can be gleaned from reading the code).
https://github.com/llvm/llvm-project/pull/85325
More information about the cfe-commits
mailing list