Merge cleanups from 'develop-v5'. No functional change

This commit is contained in:
Wilson Snyder 2022-09-17 08:17:22 -04:00
parent 80b73859a2
commit 11b0d36ba2
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
// -*- mode: C++; c-file-style: "cc-mode" -*-
//*************************************************************************
// DESCRIPTION: Verilator: Block code ordering
// DESCRIPTION: Verilator: Ordering constraint graph
//
// Code available from: https://verilator.org
//

View File

@ -302,11 +302,12 @@ int V3ParseGrammar::s_modTypeImpNum = 0;
#define APPLY_STRENGTH_TO_LIST(beginp, strengthSpecNodep, typeToCast) \
{ \
if (AstStrengthSpec* specp = VN_CAST(strengthSpecNodep, StrengthSpec)) \
if (AstStrengthSpec* specp = VN_CAST(strengthSpecNodep, StrengthSpec)) { \
for (auto* nodep = beginp; nodep; nodep = nodep->nextp()) { \
auto* const assignp = VN_AS(nodep, typeToCast); \
assignp->strengthSpecp(nodep == beginp ? specp : specp->cloneTree(false)); \
} \
} \
}
static void ERRSVKWD(FileLine* fileline, const string& tokname) {