print_zir: fix unreachable missing end paren

This commit is contained in:
Andrew Kelley 2022-06-28 17:25:26 -07:00
parent 6c51c8e131
commit a058696df2

View File

@ -2217,6 +2217,7 @@ const Writer = struct {
fn writeUnreachable(self: *Writer, stream: anytype, inst: Zir.Inst.Index) !void {
const inst_data = self.code.instructions.items(.data)[inst].@"unreachable";
try stream.writeAll(") ");
try self.writeSrc(stream, inst_data.src());
}