summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorSimon Hafner <hafnersimon@gmail.com>2014-06-18 18:47:45 -0500
committerSimon Hafner <hafnersimon@gmail.com>2014-06-18 18:47:45 -0500
commitbe534279da5021aa5e6621430a52ee1573f1a01f (patch)
treef70447285ea244d477eba30d16f52e79589ecfb6 /compiler
parent7ebbc09578a0204a9bcf361a351e514dec0219c3 (diff)
parenta48c728ab3f8d3b0a3357d62b352d9913a600d9e (diff)
downloadNim-be534279da5021aa5e6621430a52ee1573f1a01f.tar.gz
Merge pull request #1279 from Varriount/fix-1216
Fix issue #1216
Diffstat (limited to 'compiler')
-rw-r--r--compiler/guards.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/guards.nim b/compiler/guards.nim
index 813a30014..4cf06fe02 100644
--- a/compiler/guards.nim
+++ b/compiler/guards.nim
@@ -625,7 +625,7 @@ proc factImplies(fact, prop: PNode): TImplication =
     #  == not a or not b == not (a and b)
     let arg = fact.sons[1]
     case arg.getMagic
-    of mIsNil:
+    of mIsNil, mEqRef:
       return ~factImplies(arg, prop)
     of mAnd:
       # not (a and b)  means  not a or not b: