Skip to content

Commit

Permalink
opt/boolify: fix type confusion in visit_leq
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp15b committed Apr 9, 2024
1 parent 45b476e commit d50a6c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/opt/boolify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ impl Boolify {
// no match
self.visit_expr(lhs)?;
self.visit_expr(rhs)?;
Ok(builder.binary(BinOpKind::Le, lhs.ty.clone(), lhs.clone(), rhs.clone()))
Ok(builder.binary(BinOpKind::Le, Some(TyKind::Bool), lhs.clone(), rhs.clone()))
}

fn visit_eq_top(&mut self, span: Span, e: &mut Expr) -> Result<Expr, ()> {
Expand Down

0 comments on commit d50a6c1

Please sign in to comment.