summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2017-11-23 03:26:33 +0100
committerAraq <rumpf_a@web.de>2017-11-23 03:26:33 +0100
commitf2e13909d3196c174e6ab2614b5d11934c02d691 (patch)
tree90e12d630bae6e8c9c4c90daffa0b63428f52589 /compiler
parent96ddf6972d088e0e389840e718da7ca498129142 (diff)
downloadNim-f2e13909d3196c174e6ab2614b5d11934c02d691.tar.gz
fixes not-nil regression
Diffstat (limited to 'compiler')
-rw-r--r--compiler/sempass2.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/sempass2.nim b/compiler/sempass2.nim
index 2bdfaea3f..d1f8d89c9 100644
--- a/compiler/sempass2.nim
+++ b/compiler/sempass2.nim
@@ -525,7 +525,7 @@ proc notNilCheck(tracked: PEffects, n: PNode, paramType: PType) =
       # addr(x[]) can't be proven, but addr(x) can:
       if not containsNode(n, {nkDerefExpr, nkHiddenDeref}): return
     elif (n.kind == nkSym and n.sym.kind in routineKinds) or
-         (n.kind in procDefs+{nkObjConstr, nkBracket, nkClosure}) or
+         (n.kind in procDefs+{nkObjConstr, nkBracket, nkClosure, nkStrLit..nkTripleStrLit}) or
          (n.kind in nkCallKinds and n[0].kind == nkSym and n[0].sym.magic == mArrToSeq):
       # 'p' is not nil obviously:
       return