diff --git a/src/V3AstNodes.cpp b/src/V3AstNodes.cpp index ba631667c..326a3d77d 100644 --- a/src/V3AstNodes.cpp +++ b/src/V3AstNodes.cpp @@ -2032,7 +2032,7 @@ void AstRefDType::dump(std::ostream& str) const { s_recursing = true; str << " -> "; if (const auto subp = subDTypep()) { - if (typedefp()) str << "typedef=" << static_cast(typedefp())<< " -> "; + if (typedefp()) str << "typedef=" << static_cast(typedefp()) << " -> "; subp->dump(str); } else if (const auto subp = typedefp()) { subp->dump(str); diff --git a/src/verilog.y b/src/verilog.y index 2871fad8c..73a78d791 100644 --- a/src/verilog.y +++ b/src/verilog.y @@ -187,7 +187,7 @@ public: AstNode* createTypedef(FileLine* fl, const string& name, AstNode* attrsp, AstNodeDType* basep, AstNodeRange* rangep) { AstTypedef* const nodep = new AstTypedef{fl, name, attrsp, VFlagChildDType{}, - GRAMMARP->createArray(basep, rangep, false)}; + GRAMMARP->createArray(basep, rangep, false)}; SYMP->reinsert(nodep); PARSEP->tagNodep(nodep); return nodep;