Support assignment patterns as children of pins (#3041)

Signed-off-by: Krzysztof Bieganski <[email protected]>
This commit is contained in:
Krzysztof Bieganski
2021-08-30 10:44:03 -04:00
committed by GitHub
parent f64d9d87f6
commit cd9e9da4b5
3 changed files with 70 additions and 0 deletions
+3
View File
@@ -4152,6 +4152,9 @@ private:
// TOP LEVEL NODE
if (nodep->modVarp() && nodep->modVarp()->isGParam()) {
// Widthing handled as special init() case
if (auto* patternp = VN_CAST(nodep->exprp(), Pattern))
if (auto* modVarp = nodep->modVarp())
patternp->childDTypep(modVarp->childDTypep()->cloneTree(false));
userIterateChildren(nodep, WidthVP(SELF, BOTH).p());
} else if (!m_paramsOnly) {
if (!nodep->modVarp()->didWidth()) {