Remove obsolete cgen of Optional effects

This if-else branch was obsoleted by commit 1ea32b37.
This commit is contained in:
Nigel Tao committed 2020-11-09 22:16:00 +11:00
1 parent 43630d14f0
commit b3c793eef0
1 file changed
-2
-2
View File
@@ -146,8 +146,6 @@ func (g *gen) writeStatementAssign0(b *buffer, op t.ID, lhs *a.Expr, rhs *a.Expr
return false, err
}
b.writes("status = ")
} else if rhs.Effect().Coroutine() {
b.writes("status = ")
}
if !hack {