Skip to content

Commit 8c02f4d

Browse files
committed
Inline and remove cast_shift_rhs.
It has a single call site.
1 parent 03f350f commit 8c02f4d

File tree

1 file changed

+0
-9
lines changed
  • compiler/rustc_codegen_ssa/src

1 file changed

+0
-9
lines changed

compiler/rustc_codegen_ssa/src/base.rs

-9
Original file line numberDiff line numberDiff line change
@@ -340,15 +340,6 @@ pub fn cast_shift_expr_rhs<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
340340
op: hir::BinOpKind,
341341
lhs: Bx::Value,
342342
rhs: Bx::Value,
343-
) -> Bx::Value {
344-
cast_shift_rhs(bx, op, lhs, rhs)
345-
}
346-
347-
fn cast_shift_rhs<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
348-
bx: &mut Bx,
349-
op: hir::BinOpKind,
350-
lhs: Bx::Value,
351-
rhs: Bx::Value,
352343
) -> Bx::Value {
353344
// Shifts may have any size int on the rhs
354345
if op.is_shift() {

0 commit comments

Comments
 (0)