Add a useful comment.

This commit is contained in:
Nicholas Nethercote 2024-09-03 11:00:15 +10:00
parent baa16d2471
commit e26692d559

View File

@ -244,6 +244,8 @@ fn candidate<'tcx>(
let ptr_sized_int = data_layout.ptr_sized_integer();
let target_bytes = ptr_sized_int.size().bytes() as usize;
let mut data = vec![0; target_bytes * num_discrs];
// We use a macro because `$bytes` can be u32 or u64.
macro_rules! encode_store {
($curr_idx: expr, $endian: expr, $bytes: expr) => {
let bytes = match $endian {