| Issue |
239931
|
| Summary |
[clang][CodeGen][ObjC++] "unexpected dtor kind" in `CGObjCRuntime::destroyCalleeDestroyedArguments` for a struct-returning message send with a by-value struct argument on x86_64-windows-msvc
|
| Labels |
crash,
objective-c++,
generated by fuzzer
|
| Assignees |
|
| Reporter |
YuanchengJiang
|
The following code:
```objc
struct S { long long a, b; };
@interface A
- (struct S)m:(struct S)x;
@end
struct S f(A *a, struct S s) { return [a m:s]; }
```
Resulted in this output:
```
unexpected dtor kind
UNREACHABLE executed at /root/llvm-project/llvm/tools/clang/lib/CodeGen/CGObjCRuntime.cpp:520!
```
Trunk reproducer (`-x objective-c++ -fobjc-runtime=macosx --target=x86_64-pc-windows-msvc`): https://godbolt.org/z/nhjhW815K
I am not sure if it is still worthy to submit such weird reports generated by the fuzzer: I believe no one will use `-fobjc-runtime=macosx --target=x86_64-pc-windows-msvc` in practice.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs