diff --git a/compiler/transf.nim b/compiler/transf.nim index 71747bb3e9bf..7a805e9411c1 100644 --- a/compiler/transf.nim +++ b/compiler/transf.nim @@ -56,7 +56,6 @@ type contSyms, breakSyms: seq[PSym] # to transform 'continue' and 'break' deferDetected, tooEarly: bool isIntroducingNewLocalVars: bool # true if we are in `introducingNewLocalVars` (don't transform yields) - inAddr: bool flags: TransformFlags graph: ModuleGraph idgen: IdGenerator @@ -103,12 +102,12 @@ proc newTemp(c: PTransf, typ: PType, info: TLineInfo): PNode = else: result = newSymNode(r) -proc transform(c: PTransf, n: PNode): PNode +proc transform(c: PTransf, n: PNode, noConstFold = false): PNode -proc transformSons(c: PTransf, n: PNode): PNode = +proc transformSons(c: PTransf, n: PNode, noConstFold = false): PNode = result = newTransNode(n) for i in 0..