]> git.eshelyaron.com Git - emacs.git/commitdiff
fix single function top level generation
authorAndrea Corallo <akrl@sdf.org>
Sun, 24 Nov 2019 15:18:51 +0000 (16:18 +0100)
committerAndrea Corallo <akrl@sdf.org>
Wed, 1 Jan 2020 10:38:09 +0000 (11:38 +0100)
lisp/emacs-lisp/comp.el

index 217b7ffcd866d0872019652019b86c313bb2804c..47d4de87c6b43dd4490cd0e3d9703aaa9bff765a 100644 (file)
@@ -434,6 +434,8 @@ Put PREFIX in front of it."
                 (comp-func-lap func) lap
                 (comp-func-frame-size func)
                 (comp-byte-frame-size (comp-func-byte-func func))))
+        (setf (comp-ctxt-top-level-forms comp-ctxt)
+              (list (make-byte-to-native-function :name function-name)))
         (list func))))
 
 (cl-defgeneric comp-spill-lap-function ((filename string))