Skip to content

Commit

Permalink
Remove wrong void type for sized floating-point types in tree_type_to…
Browse files Browse the repository at this point in the history
…_jit_type
  • Loading branch information
antoyo committed Nov 26, 2024
1 parent 40548c1 commit e1857fe
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions gcc/jit/dummy-frontend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1227,12 +1227,6 @@ recording::type* tree_type_to_jit_type (tree type)
// FIXME: wrong type.
return new recording::memento_of_get_type (&target_builtins_ctxt,
GCC_JIT_TYPE_VOID);
/* TODO: Remove when we add support for sized floating-point types. */
for (int i = 0; i < NUM_FLOATN_NX_TYPES; i++)
if (type == FLOATN_NX_TYPE_NODE (i))
// FIXME: wrong type.
return new recording::memento_of_get_type (&target_builtins_ctxt,
GCC_JIT_TYPE_VOID);
if (type == void_type_node)
return new recording::memento_of_get_type (&target_builtins_ctxt,
GCC_JIT_TYPE_VOID);
Expand Down

0 comments on commit e1857fe

Please sign in to comment.