[debug] record the last cfg

This commit is contained in:
Daniel Kochmański 2023-11-27 08:37:04 +01:00
parent e96cb0ca18
commit c05e8e067a

View file

@ -21,6 +21,7 @@
#-complex-float nil) #-complex-float nil)
(defvar *bir*) (defvar *bir*)
(defvar *last-bir*) ;debug
;;; Compiled code uses the following kinds of variables: ;;; Compiled code uses the following kinds of variables:
;;; 1. Vi, declared explicitely, either unboxed or not (*lcl*, next-lcl) ;;; 1. Vi, declared explicitely, either unboxed or not (*lcl*, next-lcl)
@ -156,6 +157,7 @@
(*unwind-exit* '(LEAVE)) (*unwind-exit* '(LEAVE))
(*destination* *exit*) (*destination* *exit*)
(*bir* (make-bir))) (*bir* (make-bir)))
(setf *last-bir* *bir*)
(bir-embark *bir*) (bir-embark *bir*)
,@body ,@body
(bir-finish *bir*))) (bir-finish *bir*)))