Skip to content

Commit

Permalink
fixup non-opqaue pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
HertzDevil committed Jan 30, 2024
1 parent 3940c25 commit 8725443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/crystal/codegen/unions.cr
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ module Crystal
union_value_type = from_llvm_type.struct_element_types[1]
target_value_ptr = union_value(to_llvm_type, union_pointer)
union_value = load(union_value_type, union_value(from_llvm_type, value))
store union_value, pointer_cast(target_value_ptr, union_value_type)
store union_value, pointer_cast(target_value_ptr, union_value_type.pointer)
end

def assign_distinct_union_types(to_pointer, to_type, from_type, from_pointer)
Expand Down

0 comments on commit 8725443

Please sign in to comment.