commit d3fed1a87ee20e5c041f18f9768ef5c9be96e69e (tree)
parent baa2b62e88c5438c95ab439b12d3bafa55fd21a0
Author: Jacob Young <jacobly0@users.noreply.github.com>
Date: Sat, 24 Jun 2023 16:22:00 -0400
cbe: fix another instance of calling `intValue` with an error type
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/codegen/c.zig b/src/codegen/c.zig
@@ -5534,7 +5534,7 @@ fn airUnwrapErrUnionErr(f: *Function, inst: Air.Inst.Index) !CValue {
else
try f.writeCValueMember(writer, operand, .{ .identifier = "error" })
else
- try f.object.dg.renderValue(writer, error_ty, try mod.intValue(error_ty, 0), .Initializer);
+ try f.object.dg.renderValue(writer, Type.err_int, try mod.intValue(Type.err_int, 0), .Initializer);
}
try writer.writeAll(";\n");
return local;