Fix AstNode::forall return type (#3559)

Signed-off-by: Krzysztof Bieganski <kbieganski@antmicro.com>
This commit is contained in:
Krzysztof Bieganski 2022-08-19 13:33:17 +02:00 committed by GitHub
parent db5fdfb0ee
commit 33e2acfe61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2043,7 +2043,7 @@ public:
// Same as above, but for 'const' nodes
template <typename T_Node>
void forall(std::function<bool(const T_Node*)> p) const {
bool forall(std::function<bool(const T_Node*)> p) const {
static_assert(checkTypeParameter<T_Node>(), "Invalid type parameter 'T_Node'");
return predicateImpl<const T_Node, /* Default: */ true>(this, p);
}