sepcomp: add a missing undead type
authorJean Privat <jean@pryen.org>
Fri, 20 Mar 2015 06:13:33 +0000 (13:13 +0700)
committerJean Privat <jean@pryen.org>
Sat, 21 Mar 2015 06:01:04 +0000 (13:01 +0700)
Signed-off-by: Jean Privat <jean@pryen.org>

src/compiler/separate_compiler.nit

index 441abe1..9a8e7dc 100644 (file)
@@ -995,6 +995,7 @@ class SeparateCompiler
                                v.add_decl("NULL,")
                        else
                                var s = "type_{t.c_name}"
+                               undead_types.add(t.mclass_type)
                                v.require_declaration(s)
                                v.add_decl("&{s},")
                        end