diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2023-03-10 14:20:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-10 14:20:30 +0100 |
commit | 46d2161c23c2aa1905571512b9a1ef7d61ae670e (patch) | |
tree | a438e96e1e0090e1c4d3b1f8c1c04228306548e4 | |
parent | f2dad94902ce13b22dfce04213a75e4471371a65 (diff) | |
download | Nim-46d2161c23c2aa1905571512b9a1ef7d61ae670e.tar.gz |
minor refactoring (#21499)
-rw-r--r-- | compiler/liftdestructors.nim | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/compiler/liftdestructors.nim b/compiler/liftdestructors.nim index d7b1f2daa..467f015d8 100644 --- a/compiler/liftdestructors.nim +++ b/compiler/liftdestructors.nim @@ -1085,13 +1085,7 @@ proc inst(g: ModuleGraph; c: PContext; t: PType; kind: TTypeAttachedOp; idgen: I let op = getAttachedOp(g, t, kind) if op != nil and op.ast != nil and op.ast.isGenericRoutine: if t.typeInst != nil: - var a: TLiftCtx - a.info = info - a.g = g - a.kind = kind - a.c = c - a.idgen = idgen - + var a = TLiftCtx(info: info, g: g, kind: kind, c: c, idgen: idgen) let opInst = instantiateGeneric(a, op, t, t.typeInst) if opInst.ast != nil: patchBody(g, c, opInst.ast, info, a.idgen) |