diff --git a/src/Codegen.zig b/src/Codegen.zig index 37625e16..ee86de9c 100644 --- a/src/Codegen.zig +++ b/src/Codegen.zig @@ -714,7 +714,11 @@ fn generateBinary(self: *Self, node: Ast.Node.Index, breaks: ?*Breaks) Error!?*o .Map => .OP_ADD_MAP, .Integer => .OP_ADD_I, .Float => .OP_ADD_F, - else => unreachable, + else => other: { + std.debug.assert(self.reporter.had_error); + + break :other .OP_ADD_I; + }, }); }, .Minus => {