[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:
Bill Currie 2024-02-19 23:38:35 +09:00
parent 2be9821a59
commit 62221b2735

View file

@ -312,6 +312,7 @@ assign_elements (expr_t *local_expr, const expr_t *init,
set_t *initialized = set_new_size (type_size (init_type));
for (element = element_chain->head; element; element = element->next) {
scoped_src_loc (element->expr);
int offset = element->offset;
auto type = element->type;
const expr_t *alias = new_offset_alias_expr (type, init, offset);