From 491e3cb5c5e21477f9f45b25825e27905685760c Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 8 Apr 2016 17:08:50 -0700 Subject: fix crash when passing empty string to function --- src/parser.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/parser.cpp') diff --git a/src/parser.cpp b/src/parser.cpp index 2c3c4e4155..c6a67c8505 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -278,6 +278,9 @@ static void parse_string_literal(ParseContext *pc, Token *token, Buf *buf, bool buf_append_char(buf, '"'); if (offset_map) offset_map->append(pos); break; + case 'x': + zig_panic("TODO"); + break; default: ast_error(pc, token, "invalid escape character"); break; -- cgit v1.2.3