Skip to content

Commit fb37284

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

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

gcc/jit/libgccjit.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -783,12 +783,13 @@ gcc_jit_context_new_field (gcc_jit_context *ctxt,
783783
/* LOC can be NULL. */
784784
RETURN_NULL_IF_FAIL (type, ctxt, loc, "NULL type");
785785
RETURN_NULL_IF_FAIL (name, ctxt, loc, "NULL name");
786-
RETURN_NULL_IF_FAIL_PRINTF2 (
786+
// TODO: check at playback if the size is known.
787+
/*RETURN_NULL_IF_FAIL_PRINTF2 (
787788
type->has_known_size (),
788789
ctxt, loc,
789790
"unknown size for field \"%s\" (type: %s)",
790791
name,
791-
type->get_debug_string ());
792+
type->get_debug_string ());*/
792793
RETURN_NULL_IF_FAIL_PRINTF1 (
793794
!type->is_void (),
794795
ctxt, loc,

0 commit comments

Comments
 (0)