Skip to content

Commit

Permalink
Handle missing types in jit_langhook_type_for_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
antoyo committed Oct 8, 2024
1 parent a71dd58 commit 3f865a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gcc/jit/dummy-frontend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1148,6 +1148,10 @@ jit_langhook_type_for_mode (machine_mode mode, int unsignedp)
return complex_integer_type_node;
}

for (int i = 0; i < NUM_FLOATN_NX_TYPES; i++)
if (FLOATN_NX_TYPE_NODE (i) != NULL_TREE
&& mode == TYPE_MODE (FLOATN_NX_TYPE_NODE (i)))
return FLOATN_NX_TYPE_NODE (i);
/* gcc_unreachable */
return NULL;
}
Expand Down

0 comments on commit 3f865a0

Please sign in to comment.