diff --git a/go/cfg/builder.go b/go/cfg/builder.go index 24e1aba0..7f95a296 100644 --- a/go/cfg/builder.go +++ b/go/cfg/builder.go @@ -149,7 +149,7 @@ func (b *builder) branchStmt(s *ast.BranchStmt) { } case token.FALLTHROUGH: - for t := b.targets; t != nil; t = t.tail { + for t := b.targets; t != nil && block == nil; t = t.tail { block = t._fallthrough }