From 0cb4b3dd2205653cf1081bb5088acff3834519e4 Mon Sep 17 00:00:00 2001 From: araq Date: Tue, 25 Nov 2025 18:04:13 +0100 Subject: [PATCH] IC: progress --- compiler/ccgtypes.nim | 2 +- compiler/cgen.nim | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/ccgtypes.nim b/compiler/ccgtypes.nim index 545274b125..76669d41ba 100644 --- a/compiler/ccgtypes.nim +++ b/compiler/ccgtypes.nim @@ -84,7 +84,7 @@ proc fillBackendName(m: BModule; s: PSym) = if m.hcrOn: result.add '_' result.add(idOrSig(s, m.module.name.s.mangle, m.sigConflicts, m.config)) - ensureMutable s + backendEnsureMutable s s.locImpl.snippet = result proc fillParamName(m: BModule; s: PSym) = diff --git a/compiler/cgen.nim b/compiler/cgen.nim index e45621210a..de7467567a 100644 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -1508,7 +1508,7 @@ proc genProcNoForward(m: BModule, prc: PSym) = # mangle the inline proc based on the module where it is defined - # not on the first module that uses it if m.module.itemId.module != prc.itemId.module and optCompress in m.config.globalOptions: - let prcCopy = copyInlineProc(prc, m.idgen) + let prcCopy = prc # copyInlineProc(prc, m.idgen) fillProcLoc(m, prcCopy.ast[namePos]) genProcPrototype(m, prcCopy) genProcAux(m, prcCopy) @@ -2523,7 +2523,7 @@ proc writeModule(m: BModule, pending: bool) = while m.queue.len > 0: let sym = m.queue.pop() - genProcAux(m, sym) + genProcNoForward(m, sym) finishTypeDescriptions(m) if sfMainModule in m.module.flags: