Skip to content

Commit

Permalink
fixup! This patch add some reflection functions in the jit C api [PR9…
Browse files Browse the repository at this point in the history
…6889]
  • Loading branch information
antoyo committed Sep 27, 2021
1 parent 919b622 commit b80bd6a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gcc/jit/libgccjit.c
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,9 @@ gcc_jit_type_is_function_ptr_type (gcc_jit_type *type)
{
RETURN_NULL_IF_FAIL (type, NULL, NULL, "NULL type");
gcc::jit::recording::type *func_ptr_type = type->dereference ();
RETURN_NULL_IF_FAIL (func_ptr_type, NULL, NULL, "NULL type");
if (!func_ptr_type) {
return NULL;
}

return (gcc_jit_function_type *)func_ptr_type->dyn_cast_function_type ();
}
Expand Down

0 comments on commit b80bd6a

Please sign in to comment.