Skip to content

Commit

Permalink
Merge branch 'main' into declare-malloc
Browse files Browse the repository at this point in the history
  • Loading branch information
celinval authored Jun 27, 2024
2 parents 5f04078 + c8746e2 commit 3d65ebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kani-compiler/src/codegen_cprover_gotoc/codegen/rvalue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ impl<'tcx> GotocCtx<'tcx> {
) -> Expr {
debug!(?op, ?left_op, ?right_op, "codegen_comparison_fat_ptr");
let left_typ = self.operand_ty_stable(left_op);
let right_typ = self.operand_ty_stable(left_op);
let right_typ = self.operand_ty_stable(right_op);
assert_eq!(left_typ, right_typ, "Cannot compare pointers of different types");
assert!(self.is_fat_pointer_stable(left_typ));

Expand Down

0 comments on commit 3d65ebc

Please sign in to comment.