Skip to content

Commit

Permalink
Fixes mistake will undoing changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
esdrubal committed Feb 19, 2024
1 parent f0db093 commit c0e9bc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sway-ir/src/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ impl<'a, 'eng> InstructionVerifier<'a, 'eng> {
// This is a really common operation above... calling `Value::get_type()` and then failing when
// two don't match.
fn opt_ty_not_eq(&self, l_ty: &Option<Type>, r_ty: &Option<Type>) -> bool {
l_ty.is_none() || r_ty.is_none() && !l_ty.unwrap().eq(self.context, r_ty.as_ref().unwrap())
l_ty.is_none() || r_ty.is_none() || !l_ty.unwrap().eq(self.context, r_ty.as_ref().unwrap())
}

fn get_ptr_type<F: FnOnce(String) -> IrError>(
Expand Down

0 comments on commit c0e9bc8

Please sign in to comment.