| author | |
| committer | |
| log | 9965d960b594dcdc67b356201eba57db38be24f5 |
| tree | 08713babf97744ec7f8998bbb8e7fa41be5103f8 |
| parent | d3f3de73ba181c96008e7e98832764b23e637875 |
Zero-byte alignment is no longer valid for runtime types. I made most of
these changes in an earlier commit, but missed this case.1 files changed, 1 insertions(+), 3 deletions(-)
src/type.zig+1-3| ... | ... | @@ -1051,9 +1051,7 @@ pub const Type = struct { |
| 1051 | 1051 | if (union_obj.hasTag(ip)) { |
| 1052 | 1052 | return abiAlignmentAdvanced(union_obj.enum_tag_ty.toType(), mod, strat); |
| 1053 | 1053 | } else { |
| 1054 | return .{ | |
| 1055 | .scalar = Alignment.fromByteUnits(@intFromBool(union_obj.flagsPtr(ip).layout == .Extern)), | |
| 1056 | }; | |
| 1054 | return .{ .scalar = .@"1" }; | |
| 1057 | 1055 | } |
| 1058 | 1056 | } |
| 1059 | 1057 |