Fix any_of() return
This commit is contained in:
parent
d87dbb08cf
commit
4f31fec5c8
5
PExpr.cc
5
PExpr.cc
|
|
@ -382,12 +382,11 @@ PEIdent::~PEIdent()
|
||||||
|
|
||||||
static bool find_enum_constant(LexicalScope*scope, perm_string name)
|
static bool find_enum_constant(LexicalScope*scope, perm_string name)
|
||||||
{
|
{
|
||||||
std::any_of(scope->enum_sets.cbegin(), scope->enum_sets.cend(),
|
return std::any_of(scope->enum_sets.cbegin(), scope->enum_sets.cend(),
|
||||||
[name](const enum_type_t *cur) {
|
[name](const enum_type_t *cur) {
|
||||||
return std::any_of(cur->names->cbegin(), cur->names->cend(),
|
return std::any_of(cur->names->cbegin(), cur->names->cend(),
|
||||||
[name](const named_pexpr_t idx){return idx.name == name;});
|
[name](const named_pexpr_t idx){return idx.name == name;});
|
||||||
});
|
});
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void PEIdent::declare_implicit_nets(LexicalScope*scope, NetNet::Type type)
|
void PEIdent::declare_implicit_nets(LexicalScope*scope, NetNet::Type type)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue