mirror of
https://github.com/verilator/verilator.git
synced 2026-10-07 10:33:13 +02:00
Internals: Remove cloneTreeNull. No functional change intended.
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user