mirror of
https://github.com/ziglang/zig.git
synced 2025-12-16 19:23:08 +00:00
cbe: fix another instance of calling intValue with an error type
This commit is contained in:
parent
baa2b62e88
commit
d3fed1a87e
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user