mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-01 02:42:17 +00:00
llvm inc list sort with
This commit is contained in:
parent
32d0d525aa
commit
4d7a2be1dd
2 changed files with 7 additions and 6 deletions
|
@ -542,6 +542,7 @@ pub fn build_eq_wrapper<'a, 'ctx, 'env>(
|
|||
pub fn build_compare_wrapper<'a, 'ctx, 'env>(
|
||||
env: &Env<'a, 'ctx, 'env>,
|
||||
layout_interner: &mut STLayoutInterner<'a>,
|
||||
layout_ids: &mut LayoutIds<'a>,
|
||||
roc_function: FunctionValue<'ctx>,
|
||||
closure_data_layout: LambdaSet<'a>,
|
||||
layout: InLayout<'a>,
|
||||
|
@ -602,12 +603,11 @@ pub fn build_compare_wrapper<'a, 'ctx, 'env>(
|
|||
env.builder
|
||||
.build_pointer_cast(value_ptr2, value_ptr_type, "load_opaque");
|
||||
|
||||
let value1 = env
|
||||
.builder
|
||||
.new_build_load(value_type, value_cast1, "load_opaque");
|
||||
let value2 = env
|
||||
.builder
|
||||
.new_build_load(value_type, value_cast2, "load_opaque");
|
||||
let value1 = load_roc_value(env, layout_interner, layout, value_cast1, "load_opaque");
|
||||
let value2 = load_roc_value(env, layout_interner, layout, value_cast2, "load_opaque");
|
||||
|
||||
increment_refcount_layout(env, layout_interner, layout_ids, 1, value1, layout);
|
||||
increment_refcount_layout(env, layout_interner, layout_ids, 1, value2, layout);
|
||||
|
||||
let default = [value1.into(), value2.into()];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue