Fix the fix to compound pair optimimzations.

Previous version could drop code on the ground in some cases.
This commit is contained in:
Vincent St-Amour 2015-11-03 14:35:32 -06:00
parent 8f32aad3ee
commit 207a12fa23

View File

@ -137,9 +137,8 @@
[(tc-result1: t) t])]
[res #'e.arg])
([accessor (in-list (reverse (syntax->list #'e.alt)))])
#:break (not t)
(cond
[(subtype t (-pair Univ Univ)) ; safe to optimize this one layer
[(and t (subtype t (-pair Univ Univ))) ; safe to optimize this one layer
(syntax-parse accessor
[op:pair-op
(log-pair-opt)