mirror of
https://github.com/verilator/verilator.git
synced 2025-01-12 01:27:36 +00:00
Fix AstNode::exists
return type
This commit is contained in:
parent
33e2acfe61
commit
90d22cbec6
@ -2026,7 +2026,7 @@ public:
|
||||
|
||||
// Same as above, but for 'const' nodes
|
||||
template <typename T_Node>
|
||||
void exists(std::function<bool(const T_Node*)> p) const {
|
||||
bool exists(std::function<bool(const T_Node*)> p) const {
|
||||
static_assert(checkTypeParameter<T_Node>(), "Invalid type parameter 'T_Node'");
|
||||
return predicateImpl<const T_Node, /* Default: */ false>(this, p);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user