mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-17 16:32:11 +01:00
Eliminate obsolete coroSuspPoint check
This commit is contained in:
1 parent
248436c231
commit
87a4ef25d2
1 file changed
+2
-2
@@ -157,11 +157,11 @@ func (g *gen) writeFuncImpl(b *buffer, n *a.Func) error {
|
||||
}
|
||||
b.writes("{\n")
|
||||
b.writex(k.bPrologue)
|
||||
if k.astFunc.Effect().Coroutine() && k.coroSuspPoint > 0 {
|
||||
if k.astFunc.Effect().Coroutine() {
|
||||
b.writex(k.bBodyResume)
|
||||
}
|
||||
b.writex(k.bBody)
|
||||
if k.astFunc.Effect().Coroutine() && k.coroSuspPoint > 0 {
|
||||
if k.astFunc.Effect().Coroutine() {
|
||||
b.writex(k.bBodySuspend)
|
||||
} else if k.hasGotoOK {
|
||||
b.writes("\ngoto ok;ok:\n") // The goto avoids the "unused label" warning.
|
||||
|
||||
Reference in new issue
Block a user