diff options
| author | Marijn Schouten <mhkbst@gmail.com> | 2025-09-05 11:39:17 +0000 |
|---|---|---|
| committer | Marijn Schouten <mhkbst@gmail.com> | 2025-09-05 11:39:17 +0000 |
| commit | 05659c99c9fc76ebd9e314f3e07c85df142e7456 (patch) | |
| tree | 86022861d69077c3338762548572ebb1585af68d /compiler/rustc_codegen_llvm | |
| parent | ad85bc524b1ad696e42061ad8338d382dffbdbe5 (diff) | |
| download | rust-05659c99c9fc76ebd9e314f3e07c85df142e7456.tar.gz rust-05659c99c9fc76ebd9e314f3e07c85df142e7456.zip | |
gpu offload: change suspicious map into filter
Diffstat (limited to 'compiler/rustc_codegen_llvm')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/builder/gpu_offload.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/builder/gpu_offload.rs b/compiler/rustc_codegen_llvm/src/builder/gpu_offload.rs index 1280ab1442a..0737a18384b 100644 --- a/compiler/rustc_codegen_llvm/src/builder/gpu_offload.rs +++ b/compiler/rustc_codegen_llvm/src/builder/gpu_offload.rs @@ -193,7 +193,7 @@ fn gen_define_handling<'ll>( // reference) types. let num_ptr_types = types .iter() - .map(|&x| matches!(cx.type_kind(x), rustc_codegen_ssa::common::TypeKind::Pointer)) + .filter(|&x| matches!(cx.type_kind(x), rustc_codegen_ssa::common::TypeKind::Pointer)) .count(); // We do not know their size anymore at this level, so hardcode a placeholder. |
