Skip to content

Commit b80bd6a

Browse files
committed
fixup! This patch add some reflection functions in the jit C api [PR96889]
1 parent 919b622 commit b80bd6a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gcc/jit/libgccjit.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,9 @@ gcc_jit_type_is_function_ptr_type (gcc_jit_type *type)
669669
{
670670
RETURN_NULL_IF_FAIL (type, NULL, NULL, "NULL type");
671671
gcc::jit::recording::type *func_ptr_type = type->dereference ();
672-
RETURN_NULL_IF_FAIL (func_ptr_type, NULL, NULL, "NULL type");
672+
if (!func_ptr_type) {
673+
return NULL;
674+
}
673675

674676
return (gcc_jit_function_type *)func_ptr_type->dyn_cast_function_type ();
675677
}

0 commit comments

Comments
 (0)