Have List.withCapacity lowlevel use u64 over usize

This commit is contained in:
Richard Feldman 2024-01-31 20:29:17 -05:00
parent aabd95404f
commit 0b42a902ab
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B
3 changed files with 14 additions and 18 deletions

View file

@ -978,22 +978,18 @@ fn build_clone_builtin<'a, 'ctx>(
cursors.extra_offset
}
Builtin::Str => {
//
call_str_bitcode_fn(
env,
&[value],
&[
ptr.into(),
cursors.offset.into(),
cursors.extra_offset.into(),
],
crate::llvm::bitcode::BitcodeReturns::Basic,
bitcode::STR_CLONE_TO,
)
.into_int_value()
}
Builtin::Str => call_str_bitcode_fn(
env,
&[value],
&[
ptr.into(),
cursors.offset.into(),
cursors.extra_offset.into(),
],
crate::llvm::bitcode::BitcodeReturns::Basic,
bitcode::STR_CLONE_TO,
)
.into_int_value(),
Builtin::List(elem) => {
let bd = env.builder;