1
Fork 0
This commit is contained in:
Ralf Jung 2020-04-13 18:05:05 +02:00
parent 7b90ff9ae6
commit f2d4c93c6c

View file

@ -158,7 +158,8 @@ pub(super) fn op_to_const<'tcx>(
(ecx.tcx.alloc_map.lock().unwrap_memory(ptr.alloc_id), ptr.offset.bytes())
}
Scalar::Raw { .. } => (
ecx.tcx.intern_const_alloc(Allocation::from_byte_aligned_bytes(b"" as &[u8])),
ecx.tcx
.intern_const_alloc(Allocation::from_byte_aligned_bytes(b"" as &[u8])),
0,
),
};
@ -167,7 +168,7 @@ pub(super) fn op_to_const<'tcx>(
let len: usize = len.try_into().unwrap();
ConstValue::Slice { data, start, end: start + len }
}
}
},
}
}