mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-25 05:01:24 +00:00
[qfcc] Set the source location for compound init elements
Finally, less bouncing to the compound initializer's closing brace line.
This commit is contained in:
parent
2be9821a59
commit
62221b2735
1 changed files with 1 additions and 0 deletions
|
@ -312,6 +312,7 @@ assign_elements (expr_t *local_expr, const expr_t *init,
|
||||||
set_t *initialized = set_new_size (type_size (init_type));
|
set_t *initialized = set_new_size (type_size (init_type));
|
||||||
|
|
||||||
for (element = element_chain->head; element; element = element->next) {
|
for (element = element_chain->head; element; element = element->next) {
|
||||||
|
scoped_src_loc (element->expr);
|
||||||
int offset = element->offset;
|
int offset = element->offset;
|
||||||
auto type = element->type;
|
auto type = element->type;
|
||||||
const expr_t *alias = new_offset_alias_expr (type, init, offset);
|
const expr_t *alias = new_offset_alias_expr (type, init, offset);
|
||||||
|
|
Loading…
Reference in a new issue