Fix formatting vars in protect-lib wrapper

This commit is contained in:
Wilson Snyder
2021-02-27 20:06:48 -05:00
parent 5489bbcc41
commit 05e5fb04ed
3 changed files with 22 additions and 23 deletions
+1 -2
View File
@@ -263,7 +263,7 @@ private:
m_seqAssignsp = new AstTextBlock(fl, "if (last_seq_seqnum__V > "
"last_combo_seqnum__V) begin\n");
txtp->addNodep(m_seqAssignsp);
m_comboAssignsp = new AstTextBlock(fl, "end else begin\n");
m_comboAssignsp = new AstTextBlock(fl, "end\nelse begin\n");
txtp->addNodep(m_comboAssignsp);
txtp->addText(fl, "end\n");
} else {
@@ -437,7 +437,6 @@ private:
AstVar* newVarp
= new AstVar(varp->fileline(), AstVarType::VAR, varp->name() + suffix, varp->dtypep());
textp->addNodep(newVarp);
textp->addText(varp->fileline(), ";\n");
}
void handleOutput(AstVar* varp) {