Internals: Favor s string literals. No functional change.

This commit is contained in:
Wilson Snyder
2024-07-14 11:39:45 -04:00
parent 74ae879c2f
commit 131623de34
16 changed files with 35 additions and 37 deletions
+2 -2
View File
@@ -560,7 +560,7 @@ class TaskVisitor final : public VNVisitor {
AstNode* const newbodysp
= refp->taskp()->stmtsp() ? refp->taskp()->stmtsp()->cloneTree(true) : nullptr;
AstNode* const beginp
= new AstComment{refp->fileline(), string{"Function: "} + refp->name(), true};
= new AstComment{refp->fileline(), "Function: "s + refp->name(), true};
if (newbodysp) beginp->addNext(newbodysp);
if (debug() >= 9) beginp->dumpTreeAndNext(cout, "- newbegi: ");
//
@@ -612,7 +612,7 @@ class TaskVisitor final : public VNVisitor {
UASSERT_OBJ(cfuncp, refp, "No non-inline task associated with this task call?");
//
AstNode* const beginp
= new AstComment{refp->fileline(), string{"Function: "} + refp->name(), true};
= new AstComment{refp->fileline(), "Function: "s + refp->name(), true};
AstNodeCCall* ccallp;
if (VN_IS(refp, New)) {
AstCNew* const cnewp = new AstCNew{refp->fileline(), cfuncp};