diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2023-08-11 22:18:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-11 22:18:24 +0800 |
commit | 469c9cfab487380ba85520c90a2fad7d658c3023 (patch) | |
tree | b7a693643b64539cc7f9c2b83e1dfc797810f33d /compiler/ic/ic.nim | |
parent | 72bc72bf9ea470603420a0b56f63dad063f808a9 (diff) | |
download | Nim-469c9cfab487380ba85520c90a2fad7d658c3023.tar.gz |
unpublic the sons field of PType; the precursor to PType refactorings (#22446)
* unpublic the sons field of PType * tiny fixes * fixes an omittance * fixes IC * fixes
Diffstat (limited to 'compiler/ic/ic.nim')
-rw-r--r-- | compiler/ic/ic.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/ic/ic.nim b/compiler/ic/ic.nim index c2f3f793c..845e3d1fa 100644 --- a/compiler/ic/ic.nim +++ b/compiler/ic/ic.nim @@ -359,7 +359,7 @@ proc storeType(t: PType; c: var PackedEncoder; m: var PackedModule): PackedItemI paddingAtEnd: t.paddingAtEnd) storeNode(p, t, n) p.typeInst = t.typeInst.storeType(c, m) - for kid in items t.sons: + for kid in items t: p.types.add kid.storeType(c, m) c.addMissing t.sym p.sym = t.sym.safeItemId(c, m) @@ -917,7 +917,7 @@ proc typeBodyFromPacked(c: var PackedDecoder; g: var PackedModuleGraph; result.attachedOps[op] = loadSym(c, g, si, item) result.typeInst = loadType(c, g, si, t.typeInst) for son in items t.types: - result.sons.add loadType(c, g, si, son) + result.addSon loadType(c, g, si, son) loadAstBody(t, n) when false: for gen, id in items t.methods: |