Skip to content

Commit

Permalink
stage2: Add explicit type qualifier to workaround #13366
Browse files Browse the repository at this point in the history
Depending on how #13366 is resolved, this code should arguably have
been rejected with a compile error in the first place.
  • Loading branch information
topolarity authored and andrewrk committed Oct 31, 2022
1 parent 6f2408a commit 049e602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sema.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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,
} };
Expand Down

0 comments on commit 049e602

Please # to comment.