Skip to content

Commit

Permalink
Disable check for unknown sizes in gcc_jit_rvalue_dereference_field t…
Browse files Browse the repository at this point in the history
…o allow recursive types
  • Loading branch information
antoyo committed Jul 10, 2022
1 parent eb569bc commit fb37284
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gcc/jit/libgccjit.cc
Expand Up @@ -783,12 +783,13 @@ gcc_jit_context_new_field (gcc_jit_context *ctxt,
/* LOC can be NULL. */
RETURN_NULL_IF_FAIL (type, ctxt, loc, "NULL type");
RETURN_NULL_IF_FAIL (name, ctxt, loc, "NULL name");
RETURN_NULL_IF_FAIL_PRINTF2 (
// TODO: check at playback if the size is known.
/*RETURN_NULL_IF_FAIL_PRINTF2 (
type->has_known_size (),
ctxt, loc,
"unknown size for field \"%s\" (type: %s)",
name,
type->get_debug_string ());
type->get_debug_string ());*/
RETURN_NULL_IF_FAIL_PRINTF1 (
!type->is_void (),
ctxt, loc,
Expand Down

0 comments on commit fb37284

Please sign in to comment.