| Issue |
239926
|
| Summary |
[clang][PowerPC][AIX] `swiftcall` is accepted for `powerpc64-ibm-aix` but neither CodeGen nor the backend can lower it
|
| Labels |
backend:PowerPC,
crash,
platform:aix,
generated by fuzzer
|
| Assignees |
|
| Reporter |
YuanchengJiang
|
The following code:
```c
struct S { int a, b, c, d, e, f; };
__attribute__((swiftcall)) void f(struct S s) {}
```
Resulted in this output:
```
clang: /root/llvm-project/llvm/tools/clang/lib/CodeGen/TargetInfo.h:103: const clang::CodeGen::SwiftABIInfo& clang::CodeGen::TargetCodeGenInfo::getSwiftABIInfo() const: Assertion `SwiftInfo && "Swift ABI info has not been initialized"' failed.
```
Trunk reproducer (`-emit-llvm --target=powerpc64-ibm-aix-xcoff`): https://godbolt.org/z/K4Gq636Y3
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs