Skip to content

Commit 4d65dd0

Browse files
author
James Duley
committed
Fix aarch64 typo
1 parent 2ab5d8a commit 4d65dd0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/libcore/ffi.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl fmt::Debug for c_void {
4747
/// Basic implementation of a `va_list`.
4848
#[cfg(any(all(not(target_arch = "aarch64"), not(target_arch = "powerpc"),
4949
not(target_arch = "x86_64")),
50-
all(target_arch = "aarch4", target_os = "ios"),
50+
all(target_arch = "aarch64", target_os = "ios"),
5151
windows))]
5252
#[unstable(feature = "c_variadic",
5353
reason = "the `c_variadic` feature has not been properly tested on \
@@ -193,7 +193,7 @@ impl<'a> VaList<'a> {
193193
where F: for<'copy> FnOnce(VaList<'copy>) -> R {
194194
#[cfg(any(all(not(target_arch = "aarch64"), not(target_arch = "powerpc"),
195195
not(target_arch = "x86_64")),
196-
all(target_arch = "aarch4", target_os = "ios"),
196+
all(target_arch = "aarch64", target_os = "ios"),
197197
windows))]
198198
let mut ap = va_copy(self);
199199
#[cfg(all(any(target_arch = "aarch64", target_arch = "powerpc", target_arch = "x86_64"),

src/librustc_codegen_llvm/va_arg.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ pub(super) fn emit_va_arg(
109109
Align::from_bytes(4).unwrap(), true)
110110
}
111111
// Windows Aarch64
112-
("aarch4", true) => {
112+
("aarch64", true) => {
113113
emit_ptr_va_arg(bx, addr, target_ty, false,
114114
Align::from_bytes(8).unwrap(), false)
115115
}
116116
// iOS Aarch64
117-
("aarch4", _) if target.target_os == "ios" => {
117+
("aarch64", _) if target.target_os == "ios" => {
118118
emit_ptr_va_arg(bx, addr, target_ty, false,
119119
Align::from_bytes(8).unwrap(), true)
120120
}

0 commit comments

Comments
 (0)