Revert "DebugInfo: Bring back accidentally dropped DIFlagArtificial flag"

This reverts commit 5a456c5c3f.
This commit is contained in:
Anthony Latsis
2025-07-31 11:43:26 +01:00
parent f8aa50434d
commit 1de3e14252
2 changed files with 2 additions and 2 deletions

View File

@@ -1946,7 +1946,7 @@ private:
/* DWARFAddressSpace */ std::nullopt, MangledName);
// FIXME: Set DIFlagObjectPointer and make sure it is only set for `self`.
return DBuilder.createArtificialType(PTy);
return PTy;
}
case TypeKind::BuiltinExecutor: {
return createDoublePointerSizedStruct(

View File

@@ -13,6 +13,6 @@ public class C<T>
}
// CHECK: !DIDerivedType(tag: DW_TAG_typedef, name: "T",
// CHECK-SAME: baseType: ![[PTRTY:[0-9]+]]
// CHECK: ![[PTRTY]] = !DIDerivedType(tag: DW_TAG_pointer_type, name: "$sBpD", baseType: null, size: {{64|32}}, flags: DIFlagArtificial)
// CHECK: ![[PTRTY]] = !DIDerivedType(tag: DW_TAG_pointer_type, name: "$sBpD", baseType: null, size: {{64|32}})
// CHECK: ![[LOC]] = !DILocation(line: 0,