diff --git a/src/julec/obj/expr_inspector.jule b/src/julec/obj/expr_inspector.jule index f2905312..e9decc32 100644 --- a/src/julec/obj/expr_inspector.jule +++ b/src/julec/obj/expr_inspector.jule @@ -20,8 +20,9 @@ impl ExprInspector { } fn args(mut self, mut args: []sema::ExprModel) { - for (_, mut arg) in args { - self.inspect(arg) + for i in args { + // Should be guaranteed that model points to the original memory. + self.inspect(unsafe { *(&args[i]) }) } }