summary refs log tree commit diff stats
path: root/compiler/nir/nirslots.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2023-10-16 00:01:33 +0200
committerGitHub <noreply@github.com>2023-10-16 00:01:33 +0200
commit10c3ab626941d9c1ec69a2921696f4b7d0c2a6ac (patch)
treec1b8b2117bbb86101f54269ff2e66816ce4b8296 /compiler/nir/nirslots.nim
parent5f400983d588ec91a688453ce69cec94d310cc70 (diff)
downloadNim-10c3ab626941d9c1ec69a2921696f4b7d0c2a6ac.tar.gz
NIR: store sizes, alignments and offsets in the type graph; beginning… (#22822)
…s of a patent-pending new VM
Diffstat (limited to 'compiler/nir/nirslots.nim')
-rw-r--r--compiler/nir/nirslots.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/nir/nirslots.nim b/compiler/nir/nirslots.nim
index 256c25a19..d983fdea2 100644
--- a/compiler/nir/nirslots.nim
+++ b/compiler/nir/nirslots.nim
@@ -76,7 +76,7 @@ proc closeScope*(m: var SlotManager) =
 when isMainModule:
   var m = initSlotManager({ReuseTemps}, new(int))
 
-  var g = initTypeGraph()
+  var g = initTypeGraph(Literals())
 
   let a = g.openType ArrayTy
   g.addBuiltinType Int8Id