mirror of
https://github.com/verilator/verilator.git
synced 2025-01-22 14:24:18 +00:00
Codacity fix.
This commit is contained in:
parent
918df2e618
commit
67bb0c78c8
@ -406,8 +406,7 @@ public:
|
|||||||
{
|
{
|
||||||
const AstVarRef* varrefp = VN_CAST(nodep->memp(), VarRef);
|
const AstVarRef* varrefp = VN_CAST(nodep->memp(), VarRef);
|
||||||
if (!varrefp) { nodep->v3error(nodep->verilogKwd() << " loading non-variable"); }
|
if (!varrefp) { nodep->v3error(nodep->verilogKwd() << " loading non-variable"); }
|
||||||
else if (const AstAssocArrayDType* adtypep
|
else if (VN_IS(varrefp->varp()->dtypeSkipRefp(), AssocArrayDType)) {
|
||||||
= VN_CAST(varrefp->varp()->dtypeSkipRefp(), AssocArrayDType)) {
|
|
||||||
// nodep->memp() below will when verilated code is compiled create a C++ template
|
// nodep->memp() below will when verilated code is compiled create a C++ template
|
||||||
}
|
}
|
||||||
else if (const AstUnpackArrayDType* adtypep
|
else if (const AstUnpackArrayDType* adtypep
|
||||||
|
Loading…
Reference in New Issue
Block a user