Commit f35e59d
committed
compiler: Guard cond_mapper lookup in halo hoisting
_hoist_redundant_from_conditionals iterated every halo_spot from
_filter_iter_mapper and did an unguarded cond_mapper[hs0], which raised KeyError
for a nested HaloSpot (one whose subtree contains another HaloSpot), since
_make_cond_mapper does not register nested HaloSpots as keys. Use the defensive
cond_mapper.get(hs0) (as already done in _merge_halospots); the existing
'if not conditions: continue' handles the absent-key case. Fixes #2943.1 parent 870a160 commit f35e59d
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
0 commit comments