nitg-s: use table_size instead of resolution_table to check live types
authorJean Privat <jean@pryen.org>
Fri, 28 Feb 2014 14:25:08 +0000 (09:25 -0500)
committerJean Privat <jean@pryen.org>
Fri, 28 Feb 2014 17:31:25 +0000 (12:31 -0500)
A future commit will remove resolution_table on live type that does not
need one (no formal types)

Signed-off-by: Jean Privat <jean@pryen.org>

src/separate_compiler.nit

index 54f45c8..7deac6a 100644 (file)
@@ -830,7 +830,7 @@ class SeparateCompiler
                v.add("if({t} == NULL) \{")
                v.add_abort("type null")
                v.add("\}")
-               v.add("if({t}->resolution_table == NULL) \{")
+               v.add("if({t}->table_size == 0) \{")
                v.add("fprintf(stderr, \"Insantiation of a dead type: %s\\n\", {t}->name);")
                v.add_abort("type dead")
                v.add("\}")