Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
HertzDevil committed Sep 10, 2024
1 parent 94134ff commit a8153a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/compiler/crystal/codegen/call.cr
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,9 @@ class Crystal::CodeGenVisitor

# Create self var if available
if node_obj
# call `#remove_indirection` here so that the downcast call in
# `#visit(Var)` doesn't spend time expanding module types again and again
# (it should be the only use site of `node_obj.type`)
new_vars["%self"] = LLVMVar.new(@last, node_obj.type.remove_indirection, true)
end

Expand Down

0 comments on commit a8153a9

Please sign in to comment.