Skip to content

Commit 05659c9

Browse files
committed
gpu offload: change suspicious map into filter
1 parent ad85bc5 commit 05659c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_llvm/src/builder/gpu_offload.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ fn gen_define_handling<'ll>(
193193
// reference) types.
194194
let num_ptr_types = types
195195
.iter()
196-
.map(|&x| matches!(cx.type_kind(x), rustc_codegen_ssa::common::TypeKind::Pointer))
196+
.filter(|&x| matches!(cx.type_kind(x), rustc_codegen_ssa::common::TypeKind::Pointer))
197197
.count();
198198

199199
// We do not know their size anymore at this level, so hardcode a placeholder.

0 commit comments

Comments
 (0)