aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/c.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-11-23 12:21:45 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-11-23 12:21:45 -0700
commit8fe3d67c795d639b1670d2312aff7150ba4ad8ba (patch)
treed24889bc5767c83d6c307b864a237f9c582a4c47 /src/codegen/c.zig
parent4ec27a4e2508049ce0d9b6e3cc149c0403c7014b (diff)
downloadzig-8fe3d67c795d639b1670d2312aff7150ba4ad8ba.tar.gz
zig-8fe3d67c795d639b1670d2312aff7150ba4ad8ba.zip
work around stage1 compile error
Diffstat (limited to 'src/codegen/c.zig')
-rw-r--r--src/codegen/c.zig16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/codegen/c.zig b/src/codegen/c.zig
index 68a4fe3fc3..9b3ed334c0 100644
--- a/src/codegen/c.zig
+++ b/src/codegen/c.zig
@@ -5247,10 +5247,10 @@ fn airReduce(f: *Function, inst: Air.Inst.Index) !CValue {
.Or => .{ .infix = " |= " },
.Xor => .{ .infix = " ^= " },
.Min => switch (scalar_ty.zigTypeTag()) {
- .Int => .{ .ternary = " < " },
+ .Int => Op{ .ternary = " < " },
.Float => op: {
const float_bits = scalar_ty.floatBits(target);
- break :op .{
+ break :op Op{
.call_fn = std.fmt.bufPrintZ(&fn_name_buf, "{s}fmin{s}", .{
libcFloatPrefix(float_bits), libcFloatSuffix(float_bits),
}) catch unreachable,
@@ -5259,10 +5259,10 @@ fn airReduce(f: *Function, inst: Air.Inst.Index) !CValue {
else => unreachable,
},
.Max => switch (scalar_ty.zigTypeTag()) {
- .Int => .{ .ternary = " > " },
+ .Int => Op{ .ternary = " > " },
.Float => op: {
const float_bits = scalar_ty.floatBits(target);
- break :op .{
+ break :op Op{
.call_fn = std.fmt.bufPrintZ(&fn_name_buf, "{s}fmax{s}", .{
libcFloatPrefix(float_bits), libcFloatSuffix(float_bits),
}) catch unreachable,
@@ -5271,10 +5271,10 @@ fn airReduce(f: *Function, inst: Air.Inst.Index) !CValue {
else => unreachable,
},
.Add => switch (scalar_ty.zigTypeTag()) {
- .Int => .{ .infix = " += " },
+ .Int => Op{ .infix = " += " },
.Float => op: {
const float_bits = scalar_ty.floatBits(target);
- break :op .{
+ break :op Op{
.call_fn = std.fmt.bufPrintZ(&fn_name_buf, "__add{s}f3", .{
compilerRtFloatAbbrev(float_bits),
}) catch unreachable,
@@ -5283,10 +5283,10 @@ fn airReduce(f: *Function, inst: Air.Inst.Index) !CValue {
else => unreachable,
},
.Mul => switch (scalar_ty.zigTypeTag()) {
- .Int => .{ .infix = " *= " },
+ .Int => Op{ .infix = " *= " },
.Float => op: {
const float_bits = scalar_ty.floatBits(target);
- break :op .{
+ break :op Op{
.call_fn = std.fmt.bufPrintZ(&fn_name_buf, "__mul{s}f3", .{
compilerRtFloatAbbrev(float_bits),
}) catch unreachable,