================
@@ -7081,10 +7085,10 @@ QualType 
TreeTransform<Derived>::TransformAttributedType(
   // FIXME: dependent operand expressions?
   if (getDerived().AlwaysRebuild() ||
       modifiedType != oldType->getModifiedType()) {
-    // TODO: this is really lame; we should really be rebuilding the
-    // equivalent type from first principles.
-    QualType equivalentType
-      = getDerived().TransformType(oldType->getEquivalentType());
+    TypeLocBuilder AuxiliaryTLB;
+    AuxiliaryTLB.reserve(TL.getFullDataSize());
----------------
jcsxky wrote:

I‘m afraid not. It will crash on `TypeLocBuilder::pushImpl` with the new added 
test case since `TLast == LastTy` assert failed if we reuse `TLB`. Because 
current `FunctionProtoType` can't be child of other type node.

https://github.com/llvm/llvm-project/pull/78088
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to