diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-09-13 22:01:40 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-09-13 22:01:40 -0700 |
| commit | 264acfdf3caef663cddc39c2bf83818abb0e0073 (patch) | |
| tree | 26f3019c76b210d3c501745298991d2c8cea18f2 /src/AstGen.zig | |
| parent | 97d69e3352ab50f88580c383b5f375b0edadacfd (diff) | |
| download | zig-264acfdf3caef663cddc39c2bf83818abb0e0073.tar.gz zig-264acfdf3caef663cddc39c2bf83818abb0e0073.zip | |
stage2: fix incorrect spelling of AtomicOrder
Diffstat (limited to 'src/AstGen.zig')
| -rw-r--r-- | src/AstGen.zig | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/AstGen.zig b/src/AstGen.zig index 98937c7923..a8b7586f6e 100644 --- a/src/AstGen.zig +++ b/src/AstGen.zig @@ -7322,7 +7322,7 @@ fn builtinCall( }, } }); const ptr = try expr(gz, scope, .{ .ty = ptr_type }, params[1]); - const ordering = try expr(gz, scope, .{ .ty = .atomic_ordering_type }, params[2]); + const ordering = try expr(gz, scope, .{ .ty = .atomic_order_type }, params[2]); const result = try gz.addPlNode(.atomic_load, node, Zir.Inst.Bin{ .lhs = ptr, .rhs = ordering, @@ -7343,7 +7343,7 @@ fn builtinCall( const ptr = try expr(gz, scope, .{ .ty = ptr_type }, params[1]); const operation = try expr(gz, scope, .{ .ty = .atomic_rmw_op_type }, params[2]); const operand = try expr(gz, scope, .{ .ty = int_type }, params[3]); - const ordering = try expr(gz, scope, .{ .ty = .atomic_ordering_type }, params[4]); + const ordering = try expr(gz, scope, .{ .ty = .atomic_order_type }, params[4]); const result = try gz.addPlNode(.atomic_rmw, node, Zir.Inst.AtomicRmw{ .ptr = ptr, .operation = operation, @@ -7365,7 +7365,7 @@ fn builtinCall( } }); const ptr = try expr(gz, scope, .{ .ty = ptr_type }, params[1]); const operand = try expr(gz, scope, .{ .ty = int_type }, params[2]); - const ordering = try expr(gz, scope, .{ .ty = .atomic_ordering_type }, params[3]); + const ordering = try expr(gz, scope, .{ .ty = .atomic_order_type }, params[3]); const result = try gz.addPlNode(.atomic_store, node, Zir.Inst.AtomicStore{ .ptr = ptr, .operand = operand, @@ -7553,11 +7553,11 @@ fn cmpxchg( } }); const result = try gz.addPlNode(tag, node, Zir.Inst.Cmpxchg{ // zig fmt: off - .ptr = try expr(gz, scope, .{ .ty = ptr_type }, params[1]), - .expected_value = try expr(gz, scope, .{ .ty = int_type }, params[2]), - .new_value = try expr(gz, scope, .{ .ty = int_type }, params[3]), - .success_order = try expr(gz, scope, .{ .ty = .atomic_ordering_type }, params[4]), - .fail_order = try expr(gz, scope, .{ .ty = .atomic_ordering_type }, params[5]), + .ptr = try expr(gz, scope, .{ .ty = ptr_type }, params[1]), + .expected_value = try expr(gz, scope, .{ .ty = int_type }, params[2]), + .new_value = try expr(gz, scope, .{ .ty = int_type }, params[3]), + .success_order = try expr(gz, scope, .{ .ty = .atomic_order_type }, params[4]), + .fail_order = try expr(gz, scope, .{ .ty = .atomic_order_type }, params[5]), // zig fmt: on }); return rvalue(gz, rl, result, node); |
