Skip to content

Commit

Permalink
hoist #remove_indirection for downcast too
Browse files Browse the repository at this point in the history
  • Loading branch information
HertzDevil committed Sep 10, 2024
1 parent d15d9ba commit 94134ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/crystal/codegen/call.cr
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ class Crystal::CodeGenVisitor

# Create self var if available
if node_obj
new_vars["%self"] = LLVMVar.new(@last, node_obj.type, true)
new_vars["%self"] = LLVMVar.new(@last, node_obj.type.remove_indirection, true)
end

# Get type if of args and create arg vars
Expand Down

0 comments on commit 94134ff

Please sign in to comment.