Skip to content

Commit

Permalink
compiler: fix argument expression model handling of ExprInspector
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Oct 20, 2024
1 parent e4cf0a0 commit 95f37f7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/julec/obj/expr_inspector.jule
Original file line number Diff line number Diff line change
Expand Up @@ -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]) })
}
}

Expand Down

0 comments on commit 95f37f7

Please sign in to comment.