summary refs log tree commit diff stats
path: root/compiler/ccgexprs.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-05-15 23:34:30 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-05-15 23:34:30 +0200
commit74aab132bd90ad0848b64117e67c873c5da37f05 (patch)
tree206b89bb59d5e09bd6ef2e22f52d3210e232b0fc /compiler/ccgexprs.nim
parent746132d6963e8c5dabde19c62a89d22560b820fd (diff)
downloadNim-74aab132bd90ad0848b64117e67c873c5da37f05.tar.gz
refactoring: flags instead of bools
Diffstat (limited to 'compiler/ccgexprs.nim')
-rw-r--r--compiler/ccgexprs.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim
index f892a3128..9f4beda9e 100644
--- a/compiler/ccgexprs.nim
+++ b/compiler/ccgexprs.nim
@@ -1235,7 +1235,7 @@ proc genOfHelper(p: BProc; dest: PType; a: Rope): Rope =
   # unfortunately 'genTypeInfo' sets tfObjHasKids as a side effect, so we
   # have to call it here first:
   let ti = genTypeInfo(p.module, dest)
-  if tfFinal in dest.flags or (p.module.objHasKidsValid and
+  if tfFinal in dest.flags or (objHasKidsValid in p.module.flags and
                                tfObjHasKids notin dest.flags):
     result = "$1.m_type == $2" % [a, ti]
   else: