Skip to content

Commit 2b26ee5

Browse files
committed
Fixed TLS typecheck bug
1 parent 2e51501 commit 2b26ee5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rvalue.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ pub fn handle_rvalue<'tcx>(
401401
let rvalue_type = ctx.type_from_cache(rvalue_ty);
402402
let tpe = ctx.alloc_type(rvalue_type);
403403
let ptr = add_allocation(alloc_id.0.into(), ctx, tpe);
404+
let tpe = ctx[tpe].pointed_to().unwrap();
404405
(vec![], ctx.cast_ptr(ptr, tpe).into())
405406
}
406407
}

0 commit comments

Comments
 (0)