Skip to content

Commit 049e602

Browse files
topolarityandrewrk
authored andcommitted
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.
1 parent 6f2408a commit 049e602

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Sema.zig

+1-1
Original file line numberDiff line numberDiff line change
@@ -5001,7 +5001,7 @@ fn zirCImport(sema: *Sema, parent_block: *Block, inst: Zir.Inst.Index) CompileEr
50015001
var c_import_buf = std.ArrayList(u8).init(sema.gpa);
50025002
defer c_import_buf.deinit();
50035003

5004-
var comptime_reason = .{ .c_import = .{
5004+
var comptime_reason: Block.ComptimeReason = .{ .c_import = .{
50055005
.block = parent_block,
50065006
.src = src,
50075007
} };

0 commit comments

Comments
 (0)