summaryrefslogtreecommitdiff
path: root/src/ir/find_all.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/find_all.h')
-rw-r--r--src/ir/find_all.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ir/find_all.h b/src/ir/find_all.h
index bd3d265e2..77edafe89 100644
--- a/src/ir/find_all.h
+++ b/src/ir/find_all.h
@@ -40,6 +40,8 @@ template<typename T> struct FindAll {
finder.list = &list;
finder.walk(ast);
}
+
+ bool has() { return !list.empty(); }
};
// Find all pointers to instances of a certain node type