mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-22 10:41:43 +00:00
Don't generate 'jump +1' instructions
This commit is contained in:
parent
26f3370ea6
commit
6b4c89700b
1 changed files with 4 additions and 2 deletions
6
ir.c
6
ir.c
|
@ -2691,7 +2691,8 @@ tailcall:
|
|||
stmt.o1.s1 = (target->code_start) - vec_size(code_statements);
|
||||
stmt.o2.s1 = 0;
|
||||
stmt.o3.s1 = 0;
|
||||
code_push_statement(&stmt, instr->context.line);
|
||||
if (stmt.o1.s1 != 1)
|
||||
code_push_statement(&stmt, instr->context.line);
|
||||
|
||||
/* no further instructions can be in this block */
|
||||
return true;
|
||||
|
@ -2765,7 +2766,8 @@ tailcall:
|
|||
stmt.o1.s1 = (onfalse->code_start) - vec_size(code_statements);
|
||||
stmt.o2.s1 = 0;
|
||||
stmt.o3.s1 = 0;
|
||||
code_push_statement(&stmt, instr->context.line);
|
||||
if (stmt.o1.s1 != 1)
|
||||
code_push_statement(&stmt, instr->context.line);
|
||||
return true;
|
||||
}
|
||||
/* if not, generate now */
|
||||
|
|
Loading…
Reference in a new issue