Skip to content

Commit

Permalink
if and while fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
edg-l committed Feb 13, 2024
1 parent 24126b7 commit 7427ac2
Show file tree
Hide file tree
Showing 2 changed files with 289 additions and 184 deletions.
12 changes: 6 additions & 6 deletions crates/concrete_codegen_mlir/src/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ fn compile_binop<'c: 'b, 'b>(
.unwrap()
.into()
};
(value, lhs_ty)
(value, TyKind::Bool)
}
BinOp::Lt => {
let value = if is_float {
Expand Down Expand Up @@ -557,7 +557,7 @@ fn compile_binop<'c: 'b, 'b>(
.unwrap()
.into()
};
(value, lhs_ty)
(value, TyKind::Bool)
}
BinOp::Le => {
let value = if is_float {
Expand Down Expand Up @@ -597,7 +597,7 @@ fn compile_binop<'c: 'b, 'b>(
.unwrap()
.into()
};
(value, lhs_ty)
(value, TyKind::Bool)
}
BinOp::Ne => {
let value = if is_float {
Expand Down Expand Up @@ -625,7 +625,7 @@ fn compile_binop<'c: 'b, 'b>(
.unwrap()
.into()
};
(value, lhs_ty)
(value, TyKind::Bool)
}
BinOp::Ge => {
let value = if is_float {
Expand Down Expand Up @@ -665,7 +665,7 @@ fn compile_binop<'c: 'b, 'b>(
.unwrap()
.into()
};
(value, lhs_ty)
(value, TyKind::Bool)
}
BinOp::Gt => {
let value = if is_float {
Expand Down Expand Up @@ -705,7 +705,7 @@ fn compile_binop<'c: 'b, 'b>(
.unwrap()
.into()
};
(value, lhs_ty)
(value, TyKind::Bool)
}
}
}
Expand Down
Loading

0 comments on commit 7427ac2

Please sign in to comment.