projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0.9.1.26:
[sbcl.git]
/
src
/
compiler
/
seqtran.lisp
diff --git
a/src/compiler/seqtran.lisp
b/src/compiler/seqtran.lisp
index
eb0547c
..
ed8cae7
100644
(file)
--- a/
src/compiler/seqtran.lisp
+++ b/
src/compiler/seqtran.lisp
@@
-683,6
+683,10
@@
(defun valid-bit-bash-saetp-p (saetp)
;; BIT-BASHing isn't allowed on simple vectors that contain pointers
(and (not (eq t (sb!vm:saetp-specifier saetp)))
(defun valid-bit-bash-saetp-p (saetp)
;; BIT-BASHing isn't allowed on simple vectors that contain pointers
(and (not (eq t (sb!vm:saetp-specifier saetp)))
+ ;; Disallowing (VECTOR NIL) also means that we won't transform
+ ;; sequence functions into bit-bashing code and we let the
+ ;; generic sequence functions signal errors if necessary.
+ (not (zerop (sb!vm:saetp-n-bits saetp)))
;; Due to limitations with the current BIT-BASHing code, we can't
;; BIT-BASH reliably on arrays whose element types are larger
;; than the word size.
;; Due to limitations with the current BIT-BASHing code, we can't
;; BIT-BASH reliably on arrays whose element types are larger
;; than the word size.