diff options
| author | Simonas Kazlauskas <git@kazlauskas.me> | 2021-08-27 19:36:18 +0300 |
|---|---|---|
| committer | Simonas Kazlauskas <git@kazlauskas.me> | 2021-08-30 13:46:07 +0300 |
| commit | 748a089acdfc17d2837cd8ae3a18f577f2f764b7 (patch) | |
| tree | 7f918541ff8f3c8eccd4a18be992f0533295cbda /compiler/rustc_target/src/spec | |
| parent | dbb0fe9d803f7fa8688b33306266a6b054c2c3f4 (diff) | |
| download | rust-748a089acdfc17d2837cd8ae3a18f577f2f764b7.tar.gz rust-748a089acdfc17d2837cd8ae3a18f577f2f764b7.zip | |
Disallow the aapcs CC on Aarch64
This never really worked and makes LLVM assert.
Diffstat (limited to 'compiler/rustc_target/src/spec')
| -rw-r--r-- | compiler/rustc_target/src/spec/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_target/src/spec/mod.rs b/compiler/rustc_target/src/spec/mod.rs index 911956859b8..4d0cad80764 100644 --- a/compiler/rustc_target/src/spec/mod.rs +++ b/compiler/rustc_target/src/spec/mod.rs @@ -1501,7 +1501,8 @@ impl Target { | Cdecl | EfiApi => true, X86Interrupt => ["x86", "x86_64"].contains(&&self.arch[..]), - Aapcs | CCmseNonSecureCall => ["arm", "aarch64"].contains(&&self.arch[..]), + Aapcs => "arm" == self.arch, + CCmseNonSecureCall => ["arm", "aarch64"].contains(&&self.arch[..]), Win64 | SysV64 => self.arch == "x86_64", PtxKernel => self.arch == "nvptx64", Msp430Interrupt => self.arch == "msp430", |
