Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
alaindargelas committed Oct 19, 2023
1 parent 1430408 commit 7f5b18c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DesignCompile/NetlistElaboration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@ bool NetlistElaboration::high_conn_(ModuleInstance* instance) {
ports->push_back(p);
p->VpiName(formalName);
fC->populateCoreMembers(formalId, formalId, p);
if (allSignalsConst.size()) {
if (!allSignalsConst.empty()) {
auto found = allSignalsConst.find(p->VpiName());
if (found == allSignalsConst.end()) {
SymbolTable* symbols =
Expand Down Expand Up @@ -1218,7 +1218,7 @@ bool NetlistElaboration::high_conn_(ModuleInstance* instance) {
VObjectType::paExpression) { // .p(s) connection by name
sigId = tmp;
Expression = tmp;
if (allSignalsConst.size()) {
if (!allSignalsConst.empty()) {
auto found = allSignalsConst.find(formalName);
if (found == allSignalsConst.end()) {
SymbolTable* symbols =
Expand Down

0 comments on commit 7f5b18c

Please sign in to comment.