mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Only compare repr equality in wasm backend
This commit is contained in:
parent
bfbe493fe4
commit
4b7f09b175
1 changed files with 3 additions and 4 deletions
|
@ -2007,11 +2007,10 @@ impl<'a> LowLevelCall<'a> {
|
|||
let other_arg_layout = backend
|
||||
.layout_interner
|
||||
.runtime_representation(backend.storage.symbol_layouts[&self.arguments[1]]);
|
||||
debug_assert!(
|
||||
arg_layout_raw == other_arg_layout,
|
||||
debug_assert_eq!(
|
||||
arg_layout_raw.repr, other_arg_layout.repr,
|
||||
"Cannot do `==` comparison on different types: {:?} vs {:?}",
|
||||
arg_layout,
|
||||
other_arg_layout
|
||||
arg_layout, other_arg_layout
|
||||
);
|
||||
|
||||
let invert_result = matches!(self.lowlevel, LowLevel::NotEq);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue