| ... | @@ -2013,7 +2013,8 @@ pub const DeclGen = struct { | ... | @@ -2013,7 +2013,8 @@ pub const DeclGen = struct { |
| 2013 | ptr_info.@"allowzero" or | 2013 | ptr_info.@"allowzero" or |
| 2014 | !ptr_info.mutable or | 2014 | !ptr_info.mutable or |
| 2015 | ptr_info.@"volatile" or | 2015 | ptr_info.@"volatile" or |
| 2016 | ptr_info.size == .Many or ptr_info.size == .C) | 2016 | ptr_info.size == .Many or ptr_info.size == .C or |
| | 2017 | !ptr_info.pointee_type.hasRuntimeBitsIgnoreComptime()) |
| 2017 | { | 2018 | { |
| 2018 | var payload: Type.Payload.Pointer = .{ | 2019 | var payload: Type.Payload.Pointer = .{ |
| 2019 | .data = .{ | 2020 | .data = .{ |
| ... | @@ -2032,6 +2033,9 @@ pub const DeclGen = struct { | ... | @@ -2032,6 +2033,9 @@ pub const DeclGen = struct { |
| 2032 | }, | 2033 | }, |
| 2033 | }, | 2034 | }, |
| 2034 | }; | 2035 | }; |
| | 2036 | if (!ptr_info.pointee_type.hasRuntimeBitsIgnoreComptime()) { |
| | 2037 | payload.data.pointee_type = Type.anyopaque; |
| | 2038 | } |
| 2035 | const bland_ptr_ty = Type.initPayload(&payload.base); | 2039 | const bland_ptr_ty = Type.initPayload(&payload.base); |
| 2036 | const ptr_di_ty = try dg.lowerDebugType(bland_ptr_ty); | 2040 | const ptr_di_ty = try dg.lowerDebugType(bland_ptr_ty); |
| 2037 | // The recursive call to `lowerDebugType` means we can't use `gop` anymore. | 2041 | // The recursive call to `lowerDebugType` means we can't use `gop` anymore. |