diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-07-16 18:22:18 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-07-20 12:19:16 -0700 |
| commit | 8082660118bba78de00e1e103e53730a87b2b70f (patch) | |
| tree | b66a61ec4b338600dba6dbb6ecdaffd0acec3a51 /src/Module.zig | |
| parent | eadbee2041bba1cd03b24d8f30161025af8e3590 (diff) | |
| download | zig-8082660118bba78de00e1e103e53730a87b2b70f.tar.gz zig-8082660118bba78de00e1e103e53730a87b2b70f.zip | |
stage2: codegen.zig updated to new AIR memory layout
Diffstat (limited to 'src/Module.zig')
| -rw-r--r-- | src/Module.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Module.zig b/src/Module.zig index f452824d33..c101221f2e 100644 --- a/src/Module.zig +++ b/src/Module.zig @@ -1309,7 +1309,7 @@ pub const Scope = struct { const result_index = @intCast(Air.Inst.Index, sema.air_instructions.len); sema.air_instructions.appendAssumeCapacity(inst); block.instructions.appendAssumeCapacity(result_index); - return Sema.indexToRef(result_index); + return Air.indexToRef(result_index); } }; }; @@ -3533,7 +3533,7 @@ pub fn analyzeFnBody(mod: *Module, decl: *Decl, func: *Fn) SemaError!Air { const ty_ref = try sema.addType(param_type); const arg_index = @intCast(u32, sema.air_instructions.len); inner_block.instructions.appendAssumeCapacity(arg_index); - param_inst.* = Sema.indexToRef(arg_index); + param_inst.* = Air.indexToRef(arg_index); try sema.air_instructions.append(gpa, .{ .tag = .arg, .data = .{ |
