Skip to content

Commit fd76915

Browse files
committed
use the sysv64 implementation for x86_64 is_like_darwin targets
1 parent 7daa926 commit fd76915

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_codegen_llvm/src/va_arg.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,8 @@ pub(super) fn emit_va_arg<'ll, 'tcx>(
742742
AllowHigherAlign::No,
743743
)
744744
}
745-
"x86_64" if !target.is_like_darwin => emit_x86_64_sysv64_va_arg(bx, addr, target_ty),
745+
// This includes `target.is_like_darwin`, which on x86_64 targets is like sysv64.
746+
"x86_64" => emit_x86_64_sysv64_va_arg(bx, addr, target_ty),
746747
"xtensa" => emit_xtensa_va_arg(bx, addr, target_ty),
747748
// For all other architecture/OS combinations fall back to using
748749
// the LLVM va_arg instruction.

0 commit comments

Comments
 (0)