Fix type errors

This commit is contained in:
Ayaz Hafiz 2023-06-06 16:07:51 -05:00
parent 7df3d191d5
commit 80a98668d5
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
4 changed files with 5 additions and 9 deletions

View file

@ -2863,7 +2863,7 @@ pub fn build_exp_stmt<'a, 'ctx>(
_ if lay.is_refcounted() => {
if value.is_pointer_value() {
let value_ptr = match lay.repr {
let value_ptr = match lay {
LayoutRepr::Union(union_layout)
if union_layout
.stores_tag_id_in_pointer(env.target_info) =>