mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 18:13:50 +02:00
Fix filename backslash escapes in C code (#5947).
This commit is contained in:
+2
-2
@@ -685,8 +685,8 @@ class TaskVisitor final : public VNVisitor {
|
||||
UASSERT_OBJ(snp, refp, "Missing scoping context");
|
||||
ccallp->addArgsp(snp);
|
||||
// __Vfilenamep
|
||||
ccallp->addArgsp(new AstCExpr{refp->fileline(),
|
||||
"\"" + refp->fileline()->filename() + "\"", 64, true});
|
||||
ccallp->addArgsp(new AstCExpr{
|
||||
refp->fileline(), "\"" + refp->fileline()->filenameEsc() + "\"", 64, true});
|
||||
// __Vlineno
|
||||
ccallp->addArgsp(new AstConst(refp->fileline(), refp->fileline()->lineno()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user