[clang] [Clang] Fix crash when transforming a `DependentAddressSpaceType` (PR #102206)

Johannes Doerfert via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 6 13:21:25 PDT 2024


================
@@ -5838,7 +5839,7 @@ QualType TreeTransform<Derived>::TransformDependentAddressSpaceType(
   } else {
     TypeSourceInfo *DI = getSema().Context.getTrivialTypeSourceInfo(
         Result, getDerived().getBaseLocation());
-    TransformType(TLB, DI->getTypeLoc());
+    TLB.TypeWasModifiedSafely(DI->getType());
----------------
jdoerfert wrote:

Does this pass the existing tests?

https://github.com/llvm/llvm-project/pull/102206


More information about the cfe-commits mailing list