diff options
| author | Veikka Tuominen <git@vexu.eu> | 2021-09-20 21:05:42 +0300 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-09-20 20:51:31 -0700 |
| commit | 55e7c099caa7cf8dc253dac21765bb994e06b741 (patch) | |
| tree | 8bca8b4f585bc0beb70e78346d704fbeb2b3eadd /src/AstGen.zig | |
| parent | d64d5cfc0a72a9989ed58548dd806a663f847ef5 (diff) | |
| download | zig-55e7c099caa7cf8dc253dac21765bb994e06b741.tar.gz zig-55e7c099caa7cf8dc253dac21765bb994e06b741.zip | |
stage2: various fixes to cImport, sizeOf and types to get tests passing
Diffstat (limited to 'src/AstGen.zig')
| -rw-r--r-- | src/AstGen.zig | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/AstGen.zig b/src/AstGen.zig index 32b62fc3f5..176203d37f 100644 --- a/src/AstGen.zig +++ b/src/AstGen.zig @@ -7082,7 +7082,7 @@ fn builtinCall( .bit_cast => return bitCast( gz, scope, rl, node, params[0], params[1]), .TypeOf => return typeOf( gz, scope, rl, node, params), .union_init => return unionInit(gz, scope, rl, node, params), - .c_import => return cImport( gz, scope, rl, node, params[0]), + .c_import => return cImport( gz, scope, node, params[0]), .@"export" => { const node_tags = tree.nodes.items(.tag); @@ -7692,7 +7692,6 @@ fn shiftOp( fn cImport( gz: *GenZir, scope: *Scope, - rl: ResultLoc, node: Ast.Node.Index, body_node: Ast.Node.Index, ) InnerError!Zir.Inst.Ref { @@ -7712,7 +7711,7 @@ fn cImport( try block_scope.setBlockBody(block_inst); try gz.instructions.append(gpa, block_inst); - return rvalue(gz, rl, .void_value, node); + return indexToRef(block_inst); } fn overflowArithmetic( |
