Fix #22366 by making nimlf_/nimln_ part of the same line (backport) (#22508)

This commit is contained in:
Alberto Torres
2023-08-22 08:22:58 +02:00
committed by GitHub
parent 4850bb5a59
commit 3fa378533a

View File

@@ -311,10 +311,10 @@ proc genLineDir(p: BProc, t: PNode) =
(p.prc == nil or sfPure notin p.prc.flags) and t.info.fileIndex != InvalidFileIdx:
if freshLine:
if lastFileIndex == t.info.fileIndex:
linefmt(p, cpsStmts, "nimln_($1);\n",
linefmt(p, cpsStmts, "nimln_($1);",
[line])
else:
linefmt(p, cpsStmts, "nimlf_($1, $2);\n",
linefmt(p, cpsStmts, "nimlf_($1, $2);",
[line, quotedFilename(p.config, t.info)])
proc accessThreadLocalVar(p: BProc, s: PSym)