Disallow the aapcs CC on Aarch64

This never really worked and makes LLVM assert.
This commit is contained in:
Simonas Kazlauskas 2021-08-27 19:36:18 +03:00
parent dbb0fe9d80
commit 748a089acd
6 changed files with 101 additions and 28 deletions

View file

@ -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",