From 02e9d9b43b3b1cd9a4858a1f2bff302057dc2ee2 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 23 May 2022 18:48:10 -0700 Subject: stage2: make `?anyerror` represented the same as `anyerror` I was able to get the backend implementation working on LLVM and the C backend, but I'm going to ask for some help on the other backends. --- src/codegen.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/codegen.zig') diff --git a/src/codegen.zig b/src/codegen.zig index 0f411dc481..eea8095a62 100644 --- a/src/codegen.zig +++ b/src/codegen.zig @@ -654,7 +654,7 @@ pub fn generateSymbol( return Result{ .appended = {} }; } - if (typed_value.ty.isPtrLikeOptional()) { + if (typed_value.ty.optionalReprIsPayload()) { if (typed_value.val.castTag(.opt_payload)) |payload| { switch (try generateSymbol(bin_file, src_loc, .{ .ty = payload_type, -- cgit v1.2.3