about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2022-10-25 13:51:52 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2022-10-25 13:51:52 +1100
commit8c02f4d05d8840e387a97faad577187e80d3da88 (patch)
tree1de2e04ff88b8ca35f06128f3dde1fec62a3feb0 /compiler
parent03f350f5a5464e19484ab17f6a745c48d98d3415 (diff)
downloadrust-8c02f4d05d8840e387a97faad577187e80d3da88.tar.gz
rust-8c02f4d05d8840e387a97faad577187e80d3da88.zip
Inline and remove `cast_shift_rhs`.
It has a single call site.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_codegen_ssa/src/base.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/compiler/rustc_codegen_ssa/src/base.rs b/compiler/rustc_codegen_ssa/src/base.rs
index ff1eee37ad9..09f803ad88f 100644
--- a/compiler/rustc_codegen_ssa/src/base.rs
+++ b/compiler/rustc_codegen_ssa/src/base.rs
@@ -341,15 +341,6 @@ pub fn cast_shift_expr_rhs<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
     lhs: Bx::Value,
     rhs: Bx::Value,
 ) -> Bx::Value {
-    cast_shift_rhs(bx, op, lhs, rhs)
-}
-
-fn cast_shift_rhs<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
-    bx: &mut Bx,
-    op: hir::BinOpKind,
-    lhs: Bx::Value,
-    rhs: Bx::Value,
-) -> Bx::Value {
     // Shifts may have any size int on the rhs
     if op.is_shift() {
         let mut rhs_llty = bx.cx().val_ty(rhs);