Commit d0f5815
committed
Fix bug in LVA when running on closures directly.
* LVA usually runs on method scopes and in that context, runs on
all scopes nested in it.
* But, 2689915 relaxed the constraint of running LVA on method
scopes only as part of the series of commits to do more aggressive
opts on blocks.
* This patch fixes a bug in LVA when LVA runs on a closure directly
after its dynscope has been eliminated.
* We can now reorder DeadCodeElimination and OptimizeDynScopesPass
in IRScope:optimizeSimpleScopes without crashing.1 parent 2c02985 commit d0f5815
File tree
1 file changed
+2
-1
lines changed- core/src/main/java/org/jruby/ir/passes
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
84 | | - | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
0 commit comments