diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2025-08-21 17:57:58 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-21 17:57:58 -0400 |
| commit | 03fbcdb8ee7422cb28bf6c99e43669f9e385133f (patch) | |
| tree | 58badb56e248bf0ca9eba20f4b907a44afcf8fe5 /compiler/rustc_codegen_llvm/src | |
| parent | 0fcf80c055c4e2cc5f6cec8d5bb794c34f2ee66a (diff) | |
| parent | b32f4d5792ebff7c734114488184a5b72516a187 (diff) | |
| download | rust-03fbcdb8ee7422cb28bf6c99e43669f9e385133f.tar.gz rust-03fbcdb8ee7422cb28bf6c99e43669f9e385133f.zip | |
Rollup merge of #145705 - folkertdev:prefetch-remove-as-cast, r=RalfJung
remove an `as` cast in prefetch codegen r? `@RalfJung`
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 06c3d8ed6bc..49d3dedbeab 100644 --- a/compiler/rustc_codegen_llvm/src/intrinsic.rs +++ b/compiler/rustc_codegen_llvm/src/intrinsic.rs @@ -330,7 +330,7 @@ impl<'ll, 'tcx> IntrinsicCallBuilderMethods<'tcx> for Builder<'_, 'll, 'tcx> { _ => bug!(), }; let ptr = args[0].immediate(); - let locality = fn_args.const_at(1).to_value().valtree.unwrap_leaf().to_u32() as i32; + let locality = fn_args.const_at(1).to_value().valtree.unwrap_leaf().to_i32(); self.call_intrinsic( "llvm.prefetch", &[self.val_ty(ptr)], |
