Skip to content

Commit 1683181

Browse files
committed
Allow debuginfo generation for non-"native" records
This removes the "native" check for records, meaning that records with variant parts will now cause debuginfo generation.
1 parent 0ff385a commit 1683181

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm-interface/gnatllvm-debuginfo.adb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -949,9 +949,7 @@ package body GNATLLVM.DebugInfo is
949949
if Is_Unchecked_Union (TE) then
950950
-- Allow.
951951
null;
952-
elsif Ekind (TE) in Record_Kind or
953-
else not Types_Can_Have_Dynamic_Offsets
954-
then
952+
elsif not Types_Can_Have_Dynamic_Offsets then
955953
return DI_Create_Unspecified_Type (Name);
956954
end if;
957955
end if;

0 commit comments

Comments
 (0)