Skip to content

Commit 9e50728

Browse files
committed
ArgAbi::store: explicitly match other PassModes
Rather than using a wildcard, explicitly match against PassMode::Pair and Direct to make it obvious how all the cases are handled. (This is not directly related to the move annotation diff, other than to clarify how this path works).
1 parent 88796a3 commit 9e50728

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_codegen_llvm/src

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_llvm/src/abi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ impl<'ll, 'tcx> ArgAbiExt<'ll, 'tcx> for ArgAbi<'tcx, Ty<'tcx>> {
247247
);
248248
bx.lifetime_end(llscratch, scratch_size);
249249
}
250-
_ => {
250+
PassMode::Pair(..) | PassMode::Direct { .. } => {
251251
OperandRef::from_immediate_or_packed_pair(bx, val, self.layout).val.store(bx, dst);
252252
}
253253
}

0 commit comments

Comments
 (0)