From 73a8b950cb6abf36a0d29c210bb7db302ae68325 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Sat, 2 Jan 2021 07:30:39 +0100 Subject: big steps torwards an efficient, simple IC implementation (#16543) * reworked ID handling * the packed AST now has its own ID mechanism * basic serialization code works * extract rodfiles to its own module * rodfiles: store and compare configs * rodfiles: store dependencies * store config at the end * precise dependency tracking * dependency tracking for rodfiles * completed loading of PSym, PType, etc * removed dead code * bugfix: do not realloc seqs when taking addr into an element * make IC opt-in for now * makes tcompilerapi green again * final cleanups Co-authored-by: Andy Davidoff --- compiler/plugins/locals.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/plugins/locals.nim') diff --git a/compiler/plugins/locals.nim b/compiler/plugins/locals.nim index 6b0594197..c03a6986e 100644 --- a/compiler/plugins/locals.nim +++ b/compiler/plugins/locals.nim @@ -26,7 +26,7 @@ proc semLocals*(c: PContext, n: PNode): PNode = {tyVarargs, tyOpenArray, tyTypeDesc, tyStatic, tyUntyped, tyTyped, tyEmpty}: if it.owner == owner: - var field = newSym(skField, it.name, nextId c.idgen, owner, n.info) + var field = newSym(skField, it.name, nextSymId c.idgen, owner, n.info) field.typ = it.typ.skipTypes({tyVar}) field.position = counter inc(counter) -- cgit 1.4.1-2-gfad0