diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2024-04-05 16:20:23 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2024-04-05 16:20:23 +0000 |
| commit | f91bd7882f311a86cf8005af00f55dc55c744c73 (patch) | |
| tree | c0e3e6fbd204db38d5b76559891d520d4e0cf4a8 /src | |
| parent | 6728f2fef4286d7060feb7667b5da9ef3f512e34 (diff) | |
| download | rust-f91bd7882f311a86cf8005af00f55dc55c744c73.tar.gz rust-f91bd7882f311a86cf8005af00f55dc55c744c73.zip | |
Merge commit 'fbda869b4e230c788b6bce426038ba8419956f2d' into sync_cg_clif-2024-04-05
Diffstat (limited to 'src')
| -rw-r--r-- | src/num.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/num.rs b/src/num.rs index 796182418ad..714858084ec 100644 --- a/src/num.rs +++ b/src/num.rs @@ -130,7 +130,7 @@ pub(crate) fn codegen_int_binop<'tcx>( in_lhs: CValue<'tcx>, in_rhs: CValue<'tcx>, ) -> CValue<'tcx> { - if bin_op != BinOp::Shl && bin_op != BinOp::Shr { + if !matches!(bin_op, BinOp::Shl | BinOp::ShlUnchecked | BinOp::Shr | BinOp::ShrUnchecked) { assert_eq!( in_lhs.layout().ty, in_rhs.layout().ty, |
