Skip to content

Commit

Permalink
codegen unsupported entities
Browse files Browse the repository at this point in the history
  • Loading branch information
omdxp committed Sep 1, 2024
1 parent a71f112 commit 3ccf7d8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions codegen.c
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,11 @@ void codegen_generate_entity_access_for_variable_or_general(
&(struct stack_frame_data){.dtype = entity->dtype});
}

void codegen_generate_entity_access_for_unsupported(
struct resolver_result *result, struct resolver_entity *entity) {
codegen_generate_expressionable(entity->node, history_begin(0));
}

void codegen_generate_entity_access_for_entity_assignment_left_operand(
struct resolver_result *result, struct resolver_entity *entity,
struct history *history) {
Expand All @@ -820,7 +825,7 @@ void codegen_generate_entity_access_for_entity_assignment_left_operand(
break;

case RESOLVER_ENTITY_TYPE_UNSUPPORTED:
#warning "not implemented"
codegen_generate_entity_access_for_unsupported(result, entity);
break;

case RESOLVER_ENTITY_TYPE_CAST:
Expand Down Expand Up @@ -983,7 +988,7 @@ void codegen_generate_entity_access_for_entity(struct resolver_result *result,
break;

case RESOLVER_ENTITY_TYPE_UNSUPPORTED:
#warning "not implemented"
codegen_generate_entity_access_for_unsupported(result, entity);
break;

case RESOLVER_ENTITY_TYPE_CAST:
Expand Down

0 comments on commit 3ccf7d8

Please sign in to comment.