mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 00:55:11 +01:00
Fix liveness analysis typo for break/continue
This commit is contained in:
1 parent
d53f37997f
commit
54646d826d
1 file changed
+2
-2
@@ -385,9 +385,9 @@ func (h *livenessHelper) doJump(r livenesses, n *a.Jump, depth uint32) error {
|
|||||||
l := h.loops[n.JumpTarget()]
|
l := h.loops[n.JumpTarget()]
|
||||||
switch n.Keyword() {
|
switch n.Keyword() {
|
||||||
case t.IDBreak:
|
case t.IDBreak:
|
||||||
l.changed = l.before.reconcile(r) || l.changed
|
|
||||||
case t.IDContinue:
|
|
||||||
l.changed = l.after.reconcile(r) || l.changed
|
l.changed = l.after.reconcile(r) || l.changed
|
||||||
|
case t.IDContinue:
|
||||||
|
l.changed = l.before.reconcile(r) || l.changed
|
||||||
default:
|
default:
|
||||||
return fmt.Errorf("unrecognized ast.Jump keyword")
|
return fmt.Errorf("unrecognized ast.Jump keyword")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user