From f4d2f75a0782c53bfb09b70bc75de3c974ae5002 Mon Sep 17 00:00:00 2001 From: Andrea Corallo Date: Fri, 24 May 2019 13:07:11 +0200 Subject: [PATCH] add void ptr --- src/comp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/comp.c b/src/comp.c index 53cb54cba86..657fb2630ed 100644 --- a/src/comp.c +++ b/src/comp.c @@ -91,6 +91,7 @@ typedef struct { gcc_jit_context *ctxt; gcc_jit_type *lisp_obj_type; gcc_jit_type *int_type; + gcc_jit_type *void_ptr_type; gcc_jit_type *ptrdiff_type; gcc_jit_function *func; /* Current function being compiled */ gcc_jit_function *Ffuncall; /* Current function being compiled */ @@ -1105,6 +1106,8 @@ init_comp (void) #endif comp.int_type = gcc_jit_context_get_type(comp.ctxt, GCC_JIT_TYPE_INT); + comp.void_ptr_type = + gcc_jit_context_get_type(comp.ctxt, GCC_JIT_TYPE_VOID_PTR); enum gcc_jit_types ptrdiff_t_gcc; if (sizeof (ptrdiff_t) == sizeof (int)) -- 2.39.5