mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-19 07:20:50 +00:00
Fix debug line numbers for vector expressions
This commit is contained in:
parent
b37c331e76
commit
83fac13a0c
1 changed files with 7 additions and 0 deletions
|
@ -1057,6 +1057,11 @@ expr_vector_e (sblock_t *sblock, expr_t *e, operand_t **op)
|
||||||
expr_t *as, *av;
|
expr_t *as, *av;
|
||||||
expr_t *tmp;
|
expr_t *tmp;
|
||||||
type_t *vec_type = get_type (e);
|
type_t *vec_type = get_type (e);
|
||||||
|
int file = pr.source_file;
|
||||||
|
int line = pr.source_line;
|
||||||
|
|
||||||
|
pr.source_file = e->file;
|
||||||
|
pr.source_line = e->line;
|
||||||
|
|
||||||
tmp = new_temp_def_expr (vec_type);
|
tmp = new_temp_def_expr (vec_type);
|
||||||
if (vec_type == &type_vector) {
|
if (vec_type == &type_vector) {
|
||||||
|
@ -1105,6 +1110,8 @@ expr_vector_e (sblock_t *sblock, expr_t *e, operand_t **op)
|
||||||
sblock = statement_slist (sblock, as);
|
sblock = statement_slist (sblock, as);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
pr.source_file = file;
|
||||||
|
pr.source_line = line;
|
||||||
sblock = statement_subexpr (sblock, tmp, op);
|
sblock = statement_subexpr (sblock, tmp, op);
|
||||||
return sblock;
|
return sblock;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue