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 | 6cf6fd38ec06decc2e5896ca3659cd74b0b03363 (patch) | |
| tree | 7e5bd04721f85d7da3b02e5fdde8ac775bd0e8c5 /compiler/rustc_codegen_cranelift/src | |
| parent | 5958f5e08fa88ee95ede8c00f1b89befe0372d54 (diff) | |
| parent | fbda869b4e230c788b6bce426038ba8419956f2d (diff) | |
| download | rust-6cf6fd38ec06decc2e5896ca3659cd74b0b03363.tar.gz rust-6cf6fd38ec06decc2e5896ca3659cd74b0b03363.zip | |
Merge commit 'fbda869b4e230c788b6bce426038ba8419956f2d' into sync_cg_clif-2024-04-05
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/num.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/num.rs b/compiler/rustc_codegen_cranelift/src/num.rs index 796182418ad..714858084ec 100644 --- a/compiler/rustc_codegen_cranelift/src/num.rs +++ b/compiler/rustc_codegen_cranelift/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, |
