Skip to content

Commit 1bc950c

Browse files
committed
Remove duplicate PassMode::Direct check
This is handled above.
1 parent 51193ef commit 1bc950c

File tree

1 file changed

+0
-6
lines changed
  • crates/rustc_codegen_spirv/src

1 file changed

+0
-6
lines changed

crates/rustc_codegen_spirv/src/abi.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,6 @@ pub(crate) fn provide(providers: &mut Providers) {
101101
arg.mode = PassMode::Ignore;
102102
}
103103

104-
// SPIR-V backend lowers arguments by-value and cannot handle
105-
// backend-specific indirection/casts at this layer.
106-
if matches!(arg.mode, PassMode::Cast { .. }) {
107-
arg.mode = PassMode::Direct(ArgAttributes::new());
108-
}
109-
110104
arg
111105
};
112106
tcx.arena.alloc(FnAbi {

0 commit comments

Comments
 (0)