We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5fcfad commit 430ab4eCopy full SHA for 430ab4e
src/value_and_place.rs
@@ -329,7 +329,13 @@ impl<'tcx> CValue<'tcx> {
329
let msb = fx.bcx.ins().iconst(types::I64, (const_val >> 64) as u64 as i64);
330
fx.bcx.ins().iconcat(lsb, msb)
331
}
332
- ty::Bool | ty::Char | ty::Uint(_) | ty::Int(_) | ty::Ref(..) | ty::RawPtr(..) => {
+ ty::Bool
333
+ | ty::Char
334
+ | ty::Uint(_)
335
+ | ty::Int(_)
336
+ | ty::Ref(..)
337
+ | ty::RawPtr(..)
338
+ | ty::FnPtr(..) => {
339
let raw_val = const_val.size().truncate(const_val.to_bits(layout.size).unwrap());
340
fx.bcx.ins().iconst(clif_ty, raw_val as i64)
341
0 commit comments