diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2023-11-20 21:12:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-20 21:12:13 +0100 |
commit | 02be027e9b3c146c0a594c3ea4fae7152fd8b974 (patch) | |
tree | b9a95b4b29df31be23dafda1dcdc1ab4e2762372 /compiler/enumtostr.nim | |
parent | cecaf9c56b1240a44a4de837e03694a0c55ec379 (diff) | |
download | Nim-02be027e9b3c146c0a594c3ea4fae7152fd8b974.tar.gz |
IC: progress and refactorings (#22961)
Diffstat (limited to 'compiler/enumtostr.nim')
-rw-r--r-- | compiler/enumtostr.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/enumtostr.nim b/compiler/enumtostr.nim index 838cd5f97..b8d0480c7 100644 --- a/compiler/enumtostr.nim +++ b/compiler/enumtostr.nim @@ -14,7 +14,7 @@ proc genEnumToStrProc*(t: PType; info: TLineInfo; g: ModuleGraph; idgen: IdGener let res = newSym(skResult, getIdent(g.cache, "result"), idgen, result, info) res.typ = getSysType(g, info, tyString) - result.typ = newType(tyProc, nextTypeId idgen, t.owner) + result.typ = newType(tyProc, idgen, t.owner) result.typ.n = newNodeI(nkFormalParams, info) rawAddSon(result.typ, res.typ) result.typ.n.add newNodeI(nkEffectList, info) @@ -76,7 +76,7 @@ proc genCaseObjDiscMapping*(t: PType; field: PSym; info: TLineInfo; g: ModuleGra let res = newSym(skResult, getIdent(g.cache, "result"), idgen, result, info) res.typ = getSysType(g, info, tyUInt8) - result.typ = newType(tyProc, nextTypeId idgen, t.owner) + result.typ = newType(tyProc, idgen, t.owner) result.typ.n = newNodeI(nkFormalParams, info) rawAddSon(result.typ, res.typ) result.typ.n.add newNodeI(nkEffectList, info) |