summaryrefslogtreecommitdiff
path: root/src/ast_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast_utils.h')
-rw-r--r--src/ast_utils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ast_utils.h b/src/ast_utils.h
index ebb6861da..e09104cc6 100644
--- a/src/ast_utils.h
+++ b/src/ast_utils.h
@@ -36,6 +36,7 @@ struct BreakSeeker : public PostWalker<BreakSeeker, Visitor<BreakSeeker>> {
for (auto name : curr->targets) {
if (name == target) found++;
}
+ if (curr->default_ == target) found++;
}
static bool has(Expression* tree, Name target) {