mirror of
https://github.com/verilator/verilator.git
synced 2026-10-07 18:42:58 +02:00
Don't move function calls before the expression (#4413)
This commit is contained in:
+4
-1
@@ -550,7 +550,10 @@ private:
|
||||
ss << '"';
|
||||
V3EmitV::verilogForTree(sensesp, ss);
|
||||
ss << '"';
|
||||
auto* const commentp = new AstCExpr{sensesp->fileline(), ss.str(), 0};
|
||||
// possibly a multiline string
|
||||
std::string comment = ss.str();
|
||||
std::replace(comment.begin(), comment.end(), '\n', ' ');
|
||||
AstCExpr* const commentp = new AstCExpr{sensesp->fileline(), comment, 0};
|
||||
commentp->dtypeSetString();
|
||||
sensesp->user2p(commentp);
|
||||
return commentp;
|
||||
|
||||
Reference in New Issue
Block a user