From 3fa378533a1d183b37ebfeedc720f112e4f8b2d1 Mon Sep 17 00:00:00 2001 From: Alberto Torres Date: Tue, 22 Aug 2023 08:22:58 +0200 Subject: [PATCH] Fix #22366 by making nimlf_/nimln_ part of the same line (backport) (#22508) --- compiler/cgen.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/cgen.nim b/compiler/cgen.nim index 363bbce42e..994633727b 100644 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -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)