Warn when wrapping constants with THE of multiple value types
authorPaul Khuong <pvk@pvk.ca>
Sat, 19 Oct 2013 21:47:47 +0000 (17:47 -0400)
committerPaul Khuong <pvk@pvk.ca>
Sat, 19 Oct 2013 21:47:47 +0000 (17:47 -0400)
commit5193965ff7688f7d748962405343ed666bf616b2
tree751209885480622d993e99d818e30db1a7f5b68e
parentcee8ef591040db9a79cdd19297867672a9529051
Warn when wrapping constants with THE of multiple value types

IR1 translation was too eager in eliminating redundant THE forms
when the value is a constant.  We now also make sure that the
asserted type accepts single values.

Reported by Nathan Trapuzzano on sbcl-help.
NEWS
src/compiler/ir1-translators.lisp
tests/compiler.pure.lisp