Fix unsupported if virtual interface warning (#6558) (#6861)

This commit is contained in:
Krzysztof Bieganski
2025-12-23 10:12:34 -05:00
committed by GitHub
parent 742c0b134c
commit a2fcd37c08
9 changed files with 68 additions and 17 deletions
+1
View File
@@ -192,6 +192,7 @@ class LocalizeVisitor final : public VNVisitor {
&& !nodep->varp()->isStatic() // Not a static variable
&& !nodep->varp()->isClassMember() // Statically exists in design hierarchy
&& !nodep->varp()->sensIfacep() // Not sensitive to an interface
&& !nodep->varp()->isVirtIface() // Not interface pointer
&& !nodep->varp()->valuep() // Does not have an initializer
) {
UINFO(4, "Consider for localization: " << nodep);