From ce92ccccc961992c00a10e714ce9e799956c50f2 Mon Sep 17 00:00:00 2001 From: David Rubin Date: Mon, 12 Aug 2024 15:28:05 -0700 Subject: sema: `resolve{Struct,Union}Inner` don't throw away Semas before this, calls to `resolveTypeFieldsStruct` (now renamed to the more correct `resolveStructFieldTypes`) would just throw away the sema that `resolveStructInner` created and create its own. There is no reason to do this, and we fix it to preserve the sema through it all. --- src/target.zig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/target.zig') diff --git a/src/target.zig b/src/target.zig index 6246656fdc..ba586dd7a0 100644 --- a/src/target.zig +++ b/src/target.zig @@ -526,7 +526,11 @@ pub fn zigBackend(target: std.Target, use_llvm: bool) std.builtin.CompilerBacken pub inline fn backendSupportsFeature(backend: std.builtin.CompilerBackend, comptime feature: Feature) bool { return switch (feature) { .panic_fn => switch (backend) { - .stage2_c, .stage2_llvm, .stage2_x86_64, .stage2_riscv64 => true, + .stage2_c, + .stage2_llvm, + .stage2_x86_64, + .stage2_riscv64, + => true, else => false, }, .panic_unwrap_error => switch (backend) { -- cgit v1.2.3