nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
cf652be
)
Merge: nitc: don't crash when checking if a broken method can be inlined
author
Jean Privat
<jean@pryen.org>
Thu, 3 Mar 2016 07:35:23 +0000
(
02:35
-0500)
committer
Jean Privat
<jean@pryen.org>
Thu, 3 Mar 2016 07:35:23 +0000
(
02:35
-0500)
Pull-Request: #1968
src/compiler/abstract_compiler.nit
patch
|
blob
|
history
diff --git
a/src/compiler/abstract_compiler.nit
b/src/compiler/abstract_compiler.nit
index
a39e59b
..
1fad40d
100644
(file)
--- 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