Skip to content

Commit dc97709

Browse files
committed
Remove some unreachable forms.
1 parent 4c3fcc5 commit dc97709

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

src/compiler/aliencomp.lisp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,7 @@
172172
(let ((alien-type (lvar-type alien)))
173173
(unless (alien-type-type-p alien-type)
174174
(give-up-ir1-transform))
175-
(let ((alien-type (alien-type-type-alien-type alien-type)))
176-
(if (alien-type-p alien-type)
177-
alien-type
178-
(give-up-ir1-transform)))))
175+
(alien-type-type-alien-type alien-type)))
179176

180177
(defun find-deref-element-type (alien)
181178
(let ((alien-type (find-deref-alien-type alien)))

src/compiler/generic/genesis.lisp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,7 @@
295295
(bits (descriptor-bits des))
296296
(lowtag (descriptor-lowtag des)))
297297
(print-unreadable-object (des stream :type t)
298-
(cond ((eq gspace :load-time-value)
299-
(format stream "for LTV ~D" (descriptor-word-offset des)))
300-
((is-fixnum-lowtag lowtag)
298+
(cond ((is-fixnum-lowtag lowtag)
301299
(format stream "for fixnum: ~W" (descriptor-fixnum des)))
302300
((is-other-immediate-lowtag lowtag)
303301
(format stream
@@ -2259,10 +2257,10 @@ core and return a descriptor to it."
22592257
#+c-headers-only (declare (ignore name arglist forms))
22602258
#-c-headers-only
22612259
(let* ((code (get name 'opcode))
2262-
(argc (aref (car **fop-signatures**) code))
2260+
(argc (aref (car **fop-signatures**)
2261+
(or code
2262+
(error "~S is not a defined FOP." name))))
22632263
(fname (symbolicate "COLD-" name)))
2264-
(unless code
2265-
(error "~S is not a defined FOP." name))
22662264
(aver (= (length arglist) argc))
22672265
`(progn
22682266
(defun ,fname (.fasl-input. ,@arglist)
@@ -3763,8 +3761,6 @@ III. initially undefined function references (alphabetically):
37633761
(named-let recurse ((x descriptor))
37643762
(when (cold-null x)
37653763
(return-from recurse nil))
3766-
(when (eq (descriptor-gspace x) :load-time-value)
3767-
(error "Can't warm a deferred LTV placeholder"))
37683764
(when (is-fixnum-lowtag (descriptor-lowtag x))
37693765
(return-from recurse (descriptor-fixnum x)))
37703766
#+64-bit

0 commit comments

Comments
 (0)