* IR1-conversion can insert casts between a combination and its
arguments. Handle that case via principal-lvar{-use}.
* Fixes a regression in b111015 (lp#1181684).
;; this node.
(let* ((node (lvar-use filtered-lvar))
(args (basic-combination-args node))
- (victim (first args)))
+ (victim (principal-lvar (first args))))
(aver (eq (constant-value (ref-leaf (lvar-use victim)))
'dummy))
#\1 :y 2))
(let ((p2 #'(lambda (char) (upper-case-p char))))
(funcall p2 s)))))
+
+(with-test (:name :bug-1181684)
+ (compile nil `(lambda ()
+ (let ((hash #xD13CCD13))
+ (setf hash (logand most-positive-word
+ (ash hash 5)))))))