From: Alexis Laferrière Date: Sat, 17 Oct 2015 15:17:41 +0000 (-0400) Subject: nitc: don't crash when checking if a broken method can be inlined X-Git-Url: http://nitlanguage.org nitc: don't crash when checking if a broken method can be inlined Signed-off-by: Alexis Laferrière --- diff --git a/src/compiler/abstract_compiler.nit b/src/compiler/abstract_compiler.nit index 347aa11..2e34fbc 100644 --- a/src/compiler/abstract_compiler.nit +++ b/src/compiler/abstract_compiler.nit @@ -2046,6 +2046,8 @@ redef class MMethodDef else if node isa AClassdef then # Automatic free init is always inlined since it is empty or contains only attribtes assigments return true + else if node == null then + return true else abort end