nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib/mnit_linux: replace calls to LOGI/LOGW with fprintf
[nit.git]
/
src
/
global_compiler.nit
diff --git
a/src/global_compiler.nit
b/src/global_compiler.nit
index
4032931
..
bcb66ba
100644
(file)
--- a/
src/global_compiler.nit
+++ b/
src/global_compiler.nit
@@
-702,10
+702,7
@@
class GlobalCompilerVisitor
redef fun type_test(value, mtype, tag)
do
mtype = self.anchor(mtype)
redef fun type_test(value, mtype, tag)
do
mtype = self.anchor(mtype)
- var mclasstype = mtype
- if mtype isa MNullableType then mclasstype = mtype.mtype
- assert mclasstype isa MClassType
- if not self.compiler.runtime_type_analysis.live_cast_types.has(mclasstype) then
+ if not self.compiler.runtime_type_analysis.live_cast_types.has(mtype) then
debug "problem: {mtype} was detected cast-dead"
abort
end
debug "problem: {mtype} was detected cast-dead"
abort
end