Fix Itanium mangling usizes
Arrays, surprisingly, are not sized to u64 on all platforms.
This commit is contained in:
parent
7d01878bd0
commit
861e47000f
@ -525,8 +525,8 @@ fn encode_ty<'tcx>(
|
|||||||
"{}",
|
"{}",
|
||||||
&len.try_to_scalar()
|
&len.try_to_scalar()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.to_u64()
|
.to_target_usize(&tcx.data_layout)
|
||||||
.unwrap_or_else(|_| panic!("failed to convert length to u64"))
|
.expect("Array lens are defined in usize")
|
||||||
);
|
);
|
||||||
s.push_str(&encode_ty(tcx, *ty0, dict, options));
|
s.push_str(&encode_ty(tcx, *ty0, dict, options));
|
||||||
compress(dict, DictKey::Ty(ty, TyQ::None), &mut s);
|
compress(dict, DictKey::Ty(ty, TyQ::None), &mut s);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user