summary refs log tree commit diff stats
path: root/compiler/ccgcalls.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-01-19 16:54:59 +0100
committerAraq <rumpf_a@web.de>2014-01-19 16:54:59 +0100
commit73c6efdf66dd62370cb04f7ce75640743905edc5 (patch)
tree5ffe8181b782134db74b439fedca073536f3a9f4 /compiler/ccgcalls.nim
parentcde9e5d64421e34d7d844c048213f01c40af5dd7 (diff)
downloadNim-73c6efdf66dd62370cb04f7ce75640743905edc5.tar.gz
'nil' as a statement is deprecated, use an empty 'discard' instead
Diffstat (limited to 'compiler/ccgcalls.nim')
-rw-r--r--compiler/ccgcalls.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ccgcalls.nim b/compiler/ccgcalls.nim
index ec1250155..1c6eea621 100644
--- a/compiler/ccgcalls.nim
+++ b/compiler/ccgcalls.nim
@@ -73,7 +73,7 @@ proc isInCurrentFrame(p: BProc, n: PNode): bool =
     result = false
   of nkObjUpConv, nkObjDownConv, nkCheckedFieldExpr:
     result = isInCurrentFrame(p, n.sons[0])
-  else: nil
+  else: discard
 
 proc openArrayLoc(p: BProc, n: PNode): PRope =
   var a: TLoc
href='#n150'>150 151 152 153 154 155 156 157 158 159 160