compiler: skip compilation of broken methods
authorJean Privat <jean@pryen.org>
Fri, 5 Jun 2015 19:27:39 +0000 (15:27 -0400)
committerJean Privat <jean@pryen.org>
Fri, 5 Jun 2015 19:33:33 +0000 (15:33 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/compiler/separate_compiler.nit

index 085a36d..dc24b7c 100644 (file)
@@ -625,6 +625,7 @@ class SeparateCompiler
                for cd in mmodule.mclassdefs do
                        for pd in cd.mpropdefs do
                                if not pd isa MMethodDef then continue
+                               if pd.msignature == null then continue # Skip broken method
                                var rta = runtime_type_analysis
                                if modelbuilder.toolcontext.opt_skip_dead_methods.value and rta != null and not rta.live_methoddefs.has(pd) then continue
                                #print "compile {pd} @ {cd} @ {mmodule}"