Skip to content

Commit bdf8bae

Browse files
LegNeatoFirestar99
authored andcommitted
Remove duplicate PassMode::Direct check
This is handled above.
1 parent 7e6d5fc commit bdf8bae

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

  • crates/rustc_codegen_spirv/src

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)