nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
compiler: fast path is the hot path in once and literal strings
[nit.git]
/
src
/
compiler
/
compiler_ffi.nit
diff --git
a/src/compiler/compiler_ffi.nit
b/src/compiler/compiler_ffi.nit
index
dea917b
..
42423f9
100644
(file)
--- a/
src/compiler/compiler_ffi.nit
+++ b/
src/compiler/compiler_ffi.nit
@@
-388,7
+388,7
@@
redef class MExplicitCall
var recv_var = null
if mproperty.is_init then
var recv_mtype = recv_mtype
var recv_var = null
if mproperty.is_init then
var recv_mtype = recv_mtype
- recv_var = nitni_visitor.init_instance(recv_mtype)
+ recv_var = nitni_visitor.init_instance_or_extern(recv_mtype)
nitni_visitor.add("{mtype.ctype} recv /* var self: {mtype} */;")
nitni_visitor.add("recv = {recv_var};")
else
nitni_visitor.add("{mtype.ctype} recv /* var self: {mtype} */;")
nitni_visitor.add("recv = {recv_var};")
else