Skip to content

Commit 6444f24

Browse files
committed
1 parent 3d2869c commit 6444f24

File tree

1 file changed

+1
-8
lines changed
  • compiler/rustc_codegen_cranelift/src/intrinsics

1 file changed

+1
-8
lines changed

compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,14 +1118,7 @@ pub(crate) fn codegen_intrinsic_call<'tcx>(
11181118

11191119
raw_eq, <T>(v lhs_ref, v rhs_ref) {
11201120
fn type_by_size(size: Size) -> Option<Type> {
1121-
Some(match size.bits() {
1122-
8 => types::I8,
1123-
16 => types::I16,
1124-
32 => types::I32,
1125-
64 => types::I64,
1126-
128 => types::I128,
1127-
_ => return None,
1128-
})
1121+
Type::int(size.bits().try_into().ok()?)
11291122
}
11301123

11311124
let size = fx.layout_of(T).layout.size;

0 commit comments

Comments
 (0)