Skip to content

Commit

Permalink
Add additional debug for issue #972
Browse files Browse the repository at this point in the history
  • Loading branch information
nickg committed Sep 16, 2024
1 parent e404d9f commit d3decdb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lower.c
Original file line number Diff line number Diff line change
Expand Up @@ -6048,6 +6048,10 @@ static void lower_signal_assign_target(lower_unit_t *lu, target_part_t **ptr,
lower_check_scalar_bounds(lu, src_reg, type, where, p->target);

if (!type_is_homogeneous(type)) {
// XXX: debug for issue #972
if (type_is_generic(type))
fatal_at(tree_loc(where), "generic type was not rewritten");

vcode_reg_t args[2] = { reject, after };
vcode_reg_t locus = lower_debug_locus(where);
lower_for_each_field_2(lu, type, src_type, p->reg, src_reg, locus,
Expand Down

0 comments on commit d3decdb

Please sign in to comment.