mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Remove insert_direct_no_semantic in compare eq
This commit is contained in:
parent
7ab044d79f
commit
6139918e3b
7 changed files with 89 additions and 118 deletions
|
@ -1,7 +1,7 @@
|
|||
use crate::llvm::build::Env;
|
||||
use inkwell::values::{BasicValueEnum, PointerValue};
|
||||
use roc_builtins::bitcode;
|
||||
use roc_mono::layout::{InLayout, Layout, LayoutInterner, LayoutRepr, STLayoutInterner};
|
||||
use roc_mono::layout::{InLayout, Layout, LayoutRepr, STLayoutInterner};
|
||||
|
||||
use super::bitcode::{call_str_bitcode_fn, BitcodeReturns};
|
||||
use super::build::load_roc_value;
|
||||
|
@ -10,7 +10,7 @@ pub static CHAR_LAYOUT: InLayout = Layout::U8;
|
|||
|
||||
pub(crate) fn decode_from_utf8_result<'a, 'ctx>(
|
||||
env: &Env<'a, 'ctx, '_>,
|
||||
layout_interner: &mut STLayoutInterner<'a>,
|
||||
layout_interner: &STLayoutInterner<'a>,
|
||||
pointer: PointerValue<'ctx>,
|
||||
) -> BasicValueEnum<'ctx> {
|
||||
let layout = LayoutRepr::Struct(env.arena.alloc([
|
||||
|
@ -19,13 +19,11 @@ pub(crate) fn decode_from_utf8_result<'a, 'ctx>(
|
|||
Layout::BOOL,
|
||||
Layout::U8,
|
||||
]));
|
||||
// TODO: have load_roc_value use LayoutRepr
|
||||
let layout = layout_interner.insert_direct_no_semantic(layout);
|
||||
|
||||
load_roc_value(
|
||||
env,
|
||||
layout_interner,
|
||||
layout_interner.get_repr(layout),
|
||||
layout,
|
||||
pointer,
|
||||
"load_decode_from_utf8_result",
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue