Fix passing arguments by reference (#3385 partial) (#4489)

This commit is contained in:
Ryszard Rozak
2023-09-20 07:33:11 -04:00
committed by GitHub
parent 4b2bf556d8
commit 4636e9cffb
18 changed files with 292 additions and 15 deletions
+1 -1
View File
@@ -277,7 +277,7 @@ void V3LinkLevel::wrapTopCell(AstNetlist* rootp) {
varp->sigPublic(true); // User needs to be able to get to it...
oldvarp->primaryIO(false);
varp->primaryIO(true);
if (varp->direction().isRefOrConstRef()) {
if (varp->isRef() || varp->isConstRef()) {
varp->v3warn(E_UNSUPPORTED,
"Unsupported: ref/const ref as primary input/output: "
<< varp->prettyNameQ());