diff --git a/src/emit/expression.rs b/src/emit/expression.rs index 0e22009db..696ecc928 100644 --- a/src/emit/expression.rs +++ b/src/emit/expression.rs @@ -137,9 +137,7 @@ pub(super) fn expression<'a, T: TargetRuntime<'a> + ?Sized>( bin.llvm_type(&Type::Bytes(bs.len() as u8), ns) .ptr_type(AddressSpace::default()) .into(), - bin.context - .custom_width_int_type(ns.value_length as u32) - .into(), + bin.context.i64_type().into(), ], false, ); @@ -148,7 +146,7 @@ pub(super) fn expression<'a, T: TargetRuntime<'a> + ?Sized>( .const_named_struct(&[ data.into(), bin.context - .custom_width_int_type(ns.value_length as u32) + .i64_type() .const_int(bs.len() as u64, false) .into(), ])