From 86b699c5df743f54d882278e6c6b61ba0f3fa8a9 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Mon, 23 Mar 2015 21:00:24 +0700 Subject: [PATCH] sepcomp: isset is implemented on tagged attributes Signed-off-by: Jean Privat --- src/compiler/separate_compiler.nit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/separate_compiler.nit b/src/compiler/separate_compiler.nit index 15da8c1..424b849 100644 --- a/src/compiler/separate_compiler.nit +++ b/src/compiler/separate_compiler.nit @@ -1580,7 +1580,7 @@ class SeparateCompilerVisitor self.add("{res} = {recv}->attrs[{a.const_color}] != NULL; /* {a} on {recv.inspect}*/") else - if not mtype.is_c_primitive then + if not mtype.is_c_primitive and not mtype.is_tagged then self.add("{res} = {recv}->attrs[{a.const_color}].val != NULL; /* {a} on {recv.inspect} */") else self.add("{res} = 1; /* NOT YET IMPLEMENTED: isset of primitives: {a} on {recv.inspect} */") -- 1.7.9.5