mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
use load_literal
This commit is contained in:
parent
0085272cb8
commit
4376db6c17
2 changed files with 7 additions and 2 deletions
|
@ -491,9 +491,11 @@ where
|
|||
debug_assert_eq!(
|
||||
Layout::Builtin(Builtin::Bool),
|
||||
*ret_layout,
|
||||
"NumIsZero: expected to have return layout of type I1"
|
||||
"NumIsZero: expected to have return layout of type Bool"
|
||||
);
|
||||
self.build_num_is_zero(sym, &args[0], &arg_layouts[0])
|
||||
|
||||
self.load_literal(&Symbol::DEV_TMP, &Literal::Int(0))?;
|
||||
self.build_eq(sym, &args[0], &Symbol::DEV_TMP, &arg_layouts[0])
|
||||
}
|
||||
_ => Err(format!(
|
||||
"the function, {:?}, is not yet implemented",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue