Internals: Remove cloneTreeNull. No functional change intended.

This commit is contained in:
Wilson Snyder
2023-08-29 20:29:11 -04:00
parent 799a502cac
commit ca6ab584d0
5 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -421,7 +421,7 @@ private:
// outvscp is the variable for functions only, if nullptr, it's a task
UASSERT_OBJ(refp->taskp(), refp, "Unlinked?");
AstNode* const newbodysp
= AstNode::cloneTreeNull(refp->taskp()->stmtsp(), true); // Maybe nullptr
= refp->taskp()->stmtsp() ? refp->taskp()->stmtsp()->cloneTree(true) : nullptr;
AstNode* const beginp
= new AstComment{refp->fileline(), string{"Function: "} + refp->name(), true};
if (newbodysp) beginp->addNext(newbodysp);