diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-11-23 18:22:51 +0000 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-11-23 20:26:31 +0000 |
| commit | da40965300eec9aad4ea2f2fde9e6b59262cd5d6 (patch) | |
| tree | 57171d455fea2007b2cf5e7fc710ae71d47e7028 /compiler/rustc_codegen_llvm/src | |
| parent | 9b9c7d0ecc9d902b3ed5eac2f06f8669fed57f43 (diff) | |
| download | rust-da40965300eec9aad4ea2f2fde9e6b59262cd5d6.tar.gz rust-da40965300eec9aad4ea2f2fde9e6b59262cd5d6.zip | |
Add `Mutability::{is_mut,is_not}`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/intrinsic.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/intrinsic.rs b/compiler/rustc_codegen_llvm/src/intrinsic.rs index cf590a43826..2f5dd519b26 100644 --- a/compiler/rustc_codegen_llvm/src/intrinsic.rs +++ b/compiler/rustc_codegen_llvm/src/intrinsic.rs @@ -1500,7 +1500,7 @@ fn generic_simd_intrinsic<'ll, 'tcx>( let (_, element_ty1) = arg_tys[1].simd_size_and_type(bx.tcx()); let (_, element_ty2) = arg_tys[2].simd_size_and_type(bx.tcx()); let (pointer_count, underlying_ty) = match element_ty1.kind() { - ty::RawPtr(p) if p.ty == in_elem && p.mutbl == hir::Mutability::Mut => { + ty::RawPtr(p) if p.ty == in_elem && p.mutbl.is_mut() => { (ptr_count(element_ty1), non_ptr(element_ty1)) } _ => { |
