This commit is contained in:
Araq
2025-12-17 14:59:32 +01:00
parent 24831699a4
commit b878a4f444
4 changed files with 5 additions and 4 deletions

View File

@@ -230,7 +230,7 @@ proc offset*(s: PSym): int32 {.inline.} =
result = s.offsetImpl
proc `offset=`*(s: PSym, val: int32) {.inline.} =
assert s.state != Sealed
#assert s.state != Sealed
if s.state == Partial: loadSym(s)
s.offsetImpl = val

View File

@@ -3710,7 +3710,7 @@ proc expr(p: BProc, n: PNode, d: var TLoc) =
inc p.splitDecls
genGotoState(p, n)
of nkBreakState: genBreakState(p, n, d)
of nkMixinStmt, nkBindStmt: discard
of nkMixinStmt, nkBindStmt, nkReplayAction: discard
else: internalError(p.config, n.info, "expr(" & $n.kind & "); unknown node kind")
proc getDefaultValue(p: BProc; typ: PType; info: TLineInfo; result: var Builder) =

View File

@@ -11,7 +11,7 @@
# ------------------------- Name Mangling --------------------------------
import sighashes, modulegraphs, std/strscans
import sighashes, std/strscans
import ../dist/checksums/src/checksums/md5
import std/sequtils

View File

@@ -16,7 +16,7 @@ import
rodutils, renderer, cgendata, aliases,
lowerings, lineinfos, pathutils, transf,
injectdestructors, astmsgs, modulepaths, pushpoppragmas,
mangleutils, cbuilderbase
mangleutils, cbuilderbase, modulegraphs
from expanddefaults import caseObjDefaultBranch
@@ -70,6 +70,7 @@ proc findPendingModule(m: BModule, s: PSym): BModule =
result = m.g.modules[ms]
elif m.config.cmd in {cmdNifC, cmdM}:
var ms = getModule(s)
registerModule m.g.graph, ms
if ms.position >= m.g.modules.len:
result = newModule(m.g, ms, m.config, idGeneratorFromModule(ms))
else: