mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
cleanup
This commit is contained in:
parent
d23e9e9480
commit
2f1ca9decf
2 changed files with 5 additions and 5 deletions
|
@ -1,7 +1,8 @@
|
||||||
use crate::llvm::build::{allocate_with_refcount_help, build_num_binop, Env, InPlace};
|
use crate::llvm::build::{
|
||||||
|
allocate_with_refcount_help, build_num_binop, cast_basic_basic, Env, InPlace,
|
||||||
|
};
|
||||||
use crate::llvm::compare::build_eq;
|
use crate::llvm::compare::build_eq;
|
||||||
use crate::llvm::convert::{basic_type_from_layout, collection, get_ptr_type, ptr_int};
|
use crate::llvm::convert::{basic_type_from_layout, collection, get_ptr_type};
|
||||||
use crate::llvm::refcounting::PointerToRefcount;
|
|
||||||
use inkwell::builder::Builder;
|
use inkwell::builder::Builder;
|
||||||
use inkwell::context::Context;
|
use inkwell::context::Context;
|
||||||
use inkwell::types::{BasicTypeEnum, PointerType};
|
use inkwell::types::{BasicTypeEnum, PointerType};
|
||||||
|
|
|
@ -4,7 +4,7 @@ use crate::llvm::build::{
|
||||||
use crate::llvm::build_list::{
|
use crate::llvm::build_list::{
|
||||||
allocate_list, build_basic_phi2, empty_list, incrementing_elem_loop, load_list_ptr, store_list,
|
allocate_list, build_basic_phi2, empty_list, incrementing_elem_loop, load_list_ptr, store_list,
|
||||||
};
|
};
|
||||||
use crate::llvm::convert::{collection, ptr_int};
|
use crate::llvm::convert::collection;
|
||||||
use inkwell::builder::Builder;
|
use inkwell::builder::Builder;
|
||||||
use inkwell::types::BasicTypeEnum;
|
use inkwell::types::BasicTypeEnum;
|
||||||
use inkwell::values::{BasicValueEnum, FunctionValue, IntValue, PointerValue, StructValue};
|
use inkwell::values::{BasicValueEnum, FunctionValue, IntValue, PointerValue, StructValue};
|
||||||
|
@ -535,7 +535,6 @@ fn clone_nonempty_str<'a, 'ctx, 'env>(
|
||||||
}
|
}
|
||||||
Smallness::Big => {
|
Smallness::Big => {
|
||||||
let clone_ptr = allocate_list(env, inplace, &CHAR_LAYOUT, len);
|
let clone_ptr = allocate_list(env, inplace, &CHAR_LAYOUT, len);
|
||||||
let int_type = ptr_int(ctx, ptr_bytes);
|
|
||||||
|
|
||||||
// TODO check if malloc returned null; if so, runtime error for OOM!
|
// TODO check if malloc returned null; if so, runtime error for OOM!
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue