From 67bb0c78c8fdd521e955453c0667512f7bdc89ac Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 14 Jan 2020 07:13:35 -0500 Subject: [PATCH] Codacity fix. --- src/V3EmitC.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/V3EmitC.cpp b/src/V3EmitC.cpp index aebef1637..0f69d91f7 100644 --- a/src/V3EmitC.cpp +++ b/src/V3EmitC.cpp @@ -406,8 +406,7 @@ public: { const AstVarRef* varrefp = VN_CAST(nodep->memp(), VarRef); if (!varrefp) { nodep->v3error(nodep->verilogKwd() << " loading non-variable"); } - else if (const AstAssocArrayDType* adtypep - = VN_CAST(varrefp->varp()->dtypeSkipRefp(), AssocArrayDType)) { + else if (VN_IS(varrefp->varp()->dtypeSkipRefp(), AssocArrayDType)) { // nodep->memp() below will when verilated code is compiled create a C++ template } else if (const AstUnpackArrayDType* adtypep