Don't issue DEPRECATED for now no-op clock_enable attribute

Fixes #3421
This commit is contained in:
Geza Lore 2022-05-16 18:47:15 +01:00
parent 599d23697d
commit 0e62cd11da

View File

@ -305,7 +305,7 @@ private:
VL_DO_DANGLING(nodep->unlinkFrBack()->deleteTree(), nodep); VL_DO_DANGLING(nodep->unlinkFrBack()->deleteTree(), nodep);
} else if (nodep->attrType() == VAttrType::VAR_CLOCK_ENABLE) { } else if (nodep->attrType() == VAttrType::VAR_CLOCK_ENABLE) {
UASSERT_OBJ(m_varp, nodep, "Attribute not attached to variable"); UASSERT_OBJ(m_varp, nodep, "Attribute not attached to variable");
nodep->v3warn(DEPRECATED, "'clock_enable' attribute is deprecated and has no effect"); // Accepted and silently ignored for backward compatibility, but has no effect
VL_DO_DANGLING(nodep->unlinkFrBack()->deleteTree(), nodep); VL_DO_DANGLING(nodep->unlinkFrBack()->deleteTree(), nodep);
} else if (nodep->attrType() == VAttrType::VAR_FORCEABLE) { } else if (nodep->attrType() == VAttrType::VAR_FORCEABLE) {
UASSERT_OBJ(m_varp, nodep, "Attribute not attached to variable"); UASSERT_OBJ(m_varp, nodep, "Attribute not attached to variable");