]> git.eshelyaron.com Git - emacs.git/commitdiff
add emit_rval_XCONS
authorAndrea Corallo <andrea_corallo@yahoo.it>
Mon, 24 Jun 2019 11:43:58 +0000 (13:43 +0200)
committerAndrea Corallo <akrl@sdf.org>
Wed, 1 Jan 2020 10:33:45 +0000 (11:33 +0100)
src/comp.c

index c24017ce68bbdda22d623082f2a68264418d3353..e1fb73163182e1d88b1ed2c9bd6332201e9aa1da 100644 (file)
@@ -514,6 +514,14 @@ emit_rval_XUNTAG (gcc_jit_rvalue *a, gcc_jit_type *type, unsigned lisp_word_tag)
             gcc_jit_context_new_rvalue_from_int (comp.ctxt,
                                           comp.int_type,
                                           lisp_word_tag)));
+static gcc_jit_rvalue *
+emit_rval_XCONS (gcc_jit_rvalue *a)
+{
+  return emit_rval_XUNTAG (a,
+                          gcc_jit_struct_as_type (comp.lisp_cons_s),
+                          LISP_WORD_TAG (Lisp_Cons));
+}
+
 }
 
 static gcc_jit_rvalue *