nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3dc11d3
)
nitg-s: use table_size instead of resolution_table to check live types
author
Jean Privat
<jean@pryen.org>
Fri, 28 Feb 2014 14:25:08 +0000
(09:25 -0500)
committer
Jean Privat
<jean@pryen.org>
Fri, 28 Feb 2014 17:31:25 +0000
(12:31 -0500)
A future commit will remove resolution_table on live type that does not
need one (no formal types)
Signed-off-by: Jean Privat <jean@pryen.org>
src/separate_compiler.nit
patch
|
blob
|
history
diff --git
a/src/separate_compiler.nit
b/src/separate_compiler.nit
index
54f45c8
..
7deac6a
100644
(file)
--- a/
src/separate_compiler.nit
+++ b/
src/separate_compiler.nit
@@
-830,7
+830,7
@@
class SeparateCompiler
v.add("if({t} == NULL) \{")
v.add_abort("type null")
v.add("\}")
- v.add("if({t}->resolution_table == NULL) \{")
+ v.add("if({t}->table_size == 0) \{")
v.add("fprintf(stderr, \"Insantiation of a dead type: %s\\n\", {t}->name);")
v.add_abort("type dead")
v.add("\}")