Skip to content

Commit a81a37f

Browse files
committed
Disable check for unknown sizes in gcc_jit_rvalue_dereference_field to allow recursive types
1 parent dcbe91d commit a81a37f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

gcc/jit/libgccjit.cc

+3-2
Original file line numberDiff line numberDiff line change
@@ -797,12 +797,13 @@ gcc_jit_context_new_field (gcc_jit_context *ctxt,
797797
/* LOC can be NULL. */
798798
RETURN_NULL_IF_FAIL (type, ctxt, loc, "NULL type");
799799
RETURN_NULL_IF_FAIL (name, ctxt, loc, "NULL name");
800-
RETURN_NULL_IF_FAIL_PRINTF2 (
800+
// TODO: check at playback if the size is known.
801+
/*RETURN_NULL_IF_FAIL_PRINTF2 (
801802
type->has_known_size (),
802803
ctxt, loc,
803804
"unknown size for field \"%s\" (type: %s)",
804805
name,
805-
type->get_debug_string ());
806+
type->get_debug_string ());*/
806807
RETURN_NULL_IF_FAIL_PRINTF1 (
807808
!type->is_void (),
808809
ctxt, loc,

0 commit comments

Comments
 (0)