Skip to content

Commit c3ef4ac

Browse files
authored
Merge pull request #11752 from ziglang/zir-fancy-fns
stage2: add missing data to ZIR encoding of functions
2 parents c84f5a5 + bd89a73 commit c3ef4ac

File tree

7 files changed

+883
-264
lines changed

7 files changed

+883
-264
lines changed

src/AstGen.zig

Lines changed: 243 additions & 81 deletions
Large diffs are not rendered by default.

src/Module.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1595,9 +1595,9 @@ pub const Fn = struct {
15951595
switch (zir_tags[func.zir_body_inst]) {
15961596
.func => return false,
15971597
.func_inferred => return true,
1598-
.func_extended => {
1598+
.func_fancy => {
15991599
const inst_data = zir.instructions.items(.data)[func.zir_body_inst].pl_node;
1600-
const extra = zir.extraData(Zir.Inst.ExtendedFunc, inst_data.payload_index);
1600+
const extra = zir.extraData(Zir.Inst.FuncFancy, inst_data.payload_index);
16011601
return extra.data.bits.is_inferred_error;
16021602
},
16031603
else => unreachable,

0 commit comments

Comments
 (0)