We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d87dbb0 commit 4f31fecCopy full SHA for 4f31fec
PExpr.cc
@@ -382,12 +382,11 @@ PEIdent::~PEIdent()
382
383
static bool find_enum_constant(LexicalScope*scope, perm_string name)
384
{
385
- std::any_of(scope->enum_sets.cbegin(), scope->enum_sets.cend(),
386
- [name](const enum_type_t *cur) {
+ return std::any_of(scope->enum_sets.cbegin(), scope->enum_sets.cend(),
+ [name](const enum_type_t *cur) {
387
return std::any_of(cur->names->cbegin(), cur->names->cend(),
388
[name](const named_pexpr_t idx){return idx.name == name;});
389
});
390
- return false;
391
}
392
393
void PEIdent::declare_implicit_nets(LexicalScope*scope, NetNet::Type type)
0 commit comments