From 049e6025f2961467306e741fcf29c45c28fad6b3 Mon Sep 17 00:00:00 2001 From: Cody Tapscott Date: Sun, 30 Oct 2022 18:45:43 -0700 Subject: [PATCH] stage2: Add explicit type qualifier to workaround #13366 Depending on how #13366 is resolved, this code should arguably have been rejected with a compile error in the first place. --- src/Sema.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sema.zig b/src/Sema.zig index 95fae28e82..b2a0dfa779 100644 --- a/src/Sema.zig +++ b/src/Sema.zig @@ -5001,7 +5001,7 @@ fn zirCImport(sema: *Sema, parent_block: *Block, inst: Zir.Inst.Index) CompileEr var c_import_buf = std.ArrayList(u8).init(sema.gpa); defer c_import_buf.deinit(); - var comptime_reason = .{ .c_import = .{ + var comptime_reason: Block.ComptimeReason = .{ .c_import = .{ .block = parent_block, .src = src, } };