| Issue |
239925
|
| Summary |
[clang][PowerPC] `va_arg(ap, _Complex int)` on 32-bit PowerPC Linux stores through a null `llvm::Value`
|
| Labels |
backend:PowerPC,
crash,
generated by fuzzer
|
| Assignees |
|
| Reporter |
YuanchengJiang
|
The following code:
```c
#include <stdarg.h>
void f(va_list ap) { _Complex int i = va_arg(ap, _Complex int); }
```
Resulted in this output:
```
Program terminated with signal SIGSEGV (11)
Stack dump:
#5 llvm::StoreInst::StoreInst
#6 llvm::StoreInst::StoreInst
#7 (anonymous namespace)::ComplexExprEmitter::EmitStoreOfComplex
#8 clang::CodeGen::CodeGenFunction::EmitStoreOfComplex
#9 clang::CodeGen::CodeGenFunction::EmitExprAsInit
#10 clang::CodeGen::CodeGenFunction::EmitAutoVarInit
#11 clang::CodeGen::CodeGenFunction::EmitVarDecl
#12 clang::CodeGen::CodeGenFunction::EmitDecl
```
Trunk reproducer (`--target=powerpc-unknown-linux-gnu`): https://godbolt.org/z/GG8T6h8dn
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs