Remove unnecessary "goto ok;" in generated C code

This commit is contained in:
Nigel Tao committed 2021-06-25 14:47:10 +10:00
1 parent 76e6872498
commit f6945c0612
3 files changed
+9 -42

No files matched your search

+1
View File
@@ -678,6 +678,7 @@ func (g *gen) writeCoroSuspPoint(b *buffer, maybeSuspend bool) error {
macro := ""
if maybeSuspend {
macro = "_MAYBE_SUSPEND"
g.currFunk.hasGotoOK = true
}
b.printf("WUFFS_BASE__COROUTINE_SUSPENSION_POINT%s(%d);\n", macro, g.currFunk.coroSuspPoint)
return nil