Hash Low Level

This commit is contained in:
Chadtech 2021-01-13 21:24:16 -05:00
parent cddd64f1c9
commit 64d69b9ec4
3 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,4 @@
use crate::llvm::build_hash::build_hash;
use crate::llvm::build_list::{
allocate_list, empty_list, empty_polymorphic_list, list_append, list_concat, list_contains,
list_get_unsafe, list_join, list_keep_if, list_len, list_map, list_prepend, list_repeat,
@ -3086,6 +3087,11 @@ fn run_low_level<'a, 'ctx, 'env>(
empty,
)
}
Hash => {
let (value, layout) = load_symbol_and_layout(env, scope, &args[0]);
build_hash(env, value, layout)
}
}
}