summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-03-05 07:45:28 +0100
committerAndreas Rumpf <rumpf_a@web.de>2019-03-05 07:45:28 +0100
commit22445867d445896af21a85b05c52d619c0fcd274 (patch)
treeb74fe3386046320ed55a17b4b487d37a6cdf3241
parente0437dfec48fb9db40b8db20323fcc37f687f7db (diff)
downloadNim-22445867d445896af21a85b05c52d619c0fcd274.tar.gz
no underscores
-rw-r--r--compiler/destroyer.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/destroyer.nim b/compiler/destroyer.nim
index a3d1730cd..cbbfb98b6 100644
--- a/compiler/destroyer.nim
+++ b/compiler/destroyer.nim
@@ -466,10 +466,10 @@ proc pArg(arg: PNode; c: var Con; isSink: bool): PNode =
     result = p(arg, c)
 
 proc moveOrCopy(dest, ri: PNode; c: var Con): PNode =
-  template moveOrCopyIfTyped(ri_part: PNode): PNode =
+  template moveOrCopyIfTyped(riPart: PNode): PNode =
     # typ is nil if we are in if/case expr branch with noreturn
-    if ri_part.typ == nil: p(ri_part, c)
-    else: moveOrCopy(dest, ri_part, c)
+    if riPart.typ == nil: p(riPart, c)
+    else: moveOrCopy(dest, riPart, c)
 
   case ri.kind
   of nkCallKinds: