The slot accessors were inlined with instance-ref instead of safe-instance-ref

This commit is contained in:
Juan Jose Garcia Ripoll 2012-11-25 22:00:08 +01:00
parent d246049e4b
commit 3d67ce8d0f

View file

@ -127,5 +127,7 @@
when accessor
collect `(define-compiler-macro ,accessor (&whole whole obj &environment env)
(if (policy-inline-slot-access env)
`(si::instance-ref ,obj ,,i)
(if (policy-assume-no-errors env)
`(si::instance-ref ,obj ,,i))
`(clos::safe-instance-ref ,obj ,,i)
whole)))))