mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 00:32: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()]
|
||||
switch n.Keyword() {
|
||||
case t.IDBreak:
|
||||
l.changed = l.before.reconcile(r) || l.changed
|
||||
case t.IDContinue:
|
||||
l.changed = l.after.reconcile(r) || l.changed
|
||||
case t.IDContinue:
|
||||
l.changed = l.before.reconcile(r) || l.changed
|
||||
default:
|
||||
return fmt.Errorf("unrecognized ast.Jump keyword")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user