From f9dd2a776cc3122c0d72536be06d73fd684de0d5 Mon Sep 17 00:00:00 2001 From: ketmar Date: Sun, 15 Sep 2013 23:32:29 +0300 Subject: [PATCH] clang is fucked beyond any repair; make re9 works with it again --- src/libre9/re9.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libre9/re9.c b/src/libre9/re9.c index 55c3218..05c15f7 100644 --- a/src/libre9/re9.c +++ b/src/libre9/re9.c @@ -1254,7 +1254,9 @@ re9_prog_t *re9_compile_ex (const char *s, const char *eol, int flags, const cha /* start with a low priority operator to prime parser */ push_operator(ci, START-1, ci->cursubid); /* offset 0 should be NOOP */ - newinst(ci, NOP)->next = ci->pp->code_used; + /* clang is fucked beyond any repair, so we can't use the following line */ + /*newinst(ci, NOP)->next = ci->pp->code_used;*/ + { vmopcode_t *op = newinst(ci, NOP); op->next = ci->pp->code_used; } while ((token = lex(ci)) != END) { if ((token&0300) == OPERATOR) operator(ci, token); else operand(ci, token); } -- 2.11.4.GIT