summary refs log tree commit diff stats
path: root/compiler/ic/ic.nim
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2023-08-11 22:18:24 +0800
committerGitHub <noreply@github.com>2023-08-11 22:18:24 +0800
commit469c9cfab487380ba85520c90a2fad7d658c3023 (patch)
treeb7a693643b64539cc7f9c2b83e1dfc797810f33d /compiler/ic/ic.nim
parent72bc72bf9ea470603420a0b56f63dad063f808a9 (diff)
downloadNim-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.nim4
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: