[clang] Reapply "[Clang] Fix dependent local class instantiation bugs" (PR #135914)

Matheus Izvekov via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 16 10:46:04 PDT 2025


================
@@ -347,7 +347,7 @@ ParsedType Sema::getDestructorName(const IdentifierInfo &II,
     QualType T =
         CheckTypenameType(ElaboratedTypeKeyword::None, SourceLocation(),
                           SS.getWithLocInContext(Context), II, NameLoc);
-    return ParsedType::make(T);
+    return CreateParsedType(T, Context.getTrivialTypeSourceInfo(T, NameLoc));
----------------
mizvekov wrote:

`CheckTypenameType` can produce a non-trivial type source info, there is an overload that has an out-parameter for that.

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


More information about the cfe-commits mailing list