Fix -G dropping public indication (#2561).

This commit is contained in:
Wilson Snyder
2020-09-21 08:29:57 -04:00
parent 157948c552
commit 7a9e79ea79
5 changed files with 10 additions and 1 deletions
+1
View File
@@ -1128,6 +1128,7 @@ class LinkDotFindVisitor : public AstNVisitor {
AstVar* newp
= new AstVar(nodep->fileline(), AstVarType(AstVarType::GPARAM),
nodep->name(), nodep);
newp->combineType(nodep);
string svalue = v3Global.opt.parameter(nodep->name());
if (AstNode* valuep
= AstConst::parseParamLiteral(nodep->fileline(), svalue)) {