cbe: fix another instance of calling intValue with an error type

This commit is contained in:
Jacob Young 2023-06-24 16:22:00 -04:00
parent baa2b62e88
commit d3fed1a87e

View File

@ -5534,7 +5534,7 @@ fn airUnwrapErrUnionErr(f: *Function, inst: Air.Inst.Index) !CValue {
else else
try f.writeCValueMember(writer, operand, .{ .identifier = "error" }) try f.writeCValueMember(writer, operand, .{ .identifier = "error" })
else 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"); try writer.writeAll(";\n");
return local; return local;