Compile fixes

This commit is contained in:
Sylvester Hesp 2022-08-26 17:07:33 +02:00 committed by Eduard-Mihai Burtescu
parent c6ffb40b76
commit 7fd517a384

View File

@ -440,7 +440,7 @@ impl<'tcx> CodegenCx<'tcx> {
// tldr, the pointer here is only needed for the offset // tldr, the pointer here is only needed for the offset
let value = match alloc let value = match alloc
.inner() .inner()
.read_scalar(self, alloc_range(*offset, size)) .read_scalar(self, alloc_range(*offset, size), primitive.is_ptr())
.unwrap() .unwrap()
{ {
ScalarMaybeUninit::Scalar(scalar) => { ScalarMaybeUninit::Scalar(scalar) => {