Add default parameters to some Ast nodes for convenience

Also update usage to utilize. No functional change.
This commit is contained in:
Geza Lore
2022-04-23 14:47:16 +01:00
parent a9cd2998e5
commit b22e368b25
12 changed files with 39 additions and 50 deletions
+1 -1
View File
@@ -266,7 +266,7 @@ private:
// and we also need to keep track of it for comparisons later.
m_mgCondp = m_mgCondp->cloneTree(false);
// Create equivalent 'if' statement and insert it before the first node
AstIf* const resultp = new AstIf(m_mgCondp->fileline(), m_mgCondp, nullptr, nullptr);
AstIf* const resultp = new AstIf(m_mgCondp->fileline(), m_mgCondp);
m_mgFirstp->addHereThisAsNext(resultp);
// Unzip the list and insert under branches
AstNode* nextp = m_mgFirstp;