From 90d22cbec6cf16c164396af44c5961ef95c4b94f Mon Sep 17 00:00:00 2001 From: Geza Lore Date: Fri, 19 Aug 2022 13:22:06 +0100 Subject: [PATCH] Fix `AstNode::exists` return type --- src/V3Ast.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/V3Ast.h b/src/V3Ast.h index 89ae5a35b..c3243b30d 100644 --- a/src/V3Ast.h +++ b/src/V3Ast.h @@ -2026,7 +2026,7 @@ public: // Same as above, but for 'const' nodes template - void exists(std::function p) const { + bool exists(std::function p) const { static_assert(checkTypeParameter(), "Invalid type parameter 'T_Node'"); return predicateImpl(this, p); }