fix crash when passing empty string to function

This commit is contained in:
Andrew Kelley
2016-04-08 17:08:50 -07:00
parent 4ce85ea067
commit 491e3cb5c5
3 changed files with 11 additions and 1 deletions

View File

@@ -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;