From 67550499e5743b86a2e602bcaa306c8d7217622a Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Fri, 5 Jun 2015 15:27:39 -0400 Subject: [PATCH] compiler: skip compilation of broken methods Signed-off-by: Jean Privat --- src/compiler/separate_compiler.nit | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/separate_compiler.nit b/src/compiler/separate_compiler.nit index 085a36d..dc24b7c 100644 --- a/src/compiler/separate_compiler.nit +++ b/src/compiler/separate_compiler.nit @@ -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}" -- 1.7.9.5