| Issue |
239929
|
| Summary |
[ARM][Windows] `try`/`catch(...)` around a call returning a large struct asserts in BranchFolding: "MBB is part of two scopes!"
|
| Labels |
backend:ARM,
platform:windows,
crash,
generated by fuzzer
|
| Assignees |
|
| Reporter |
YuanchengJiang
|
The following code:
```cpp
struct Large { int cs[32]; };
Large getLarge();
void f() { try { getLarge(); } catch (...) {} }
```
Resulted in this output:
```
clang++: /root/llvm-project/llvm/lib/CodeGen/Analysis.cpp:859: void collectEHScopeMembers(llvm::DenseMap<const llvm::MachineBasicBlock*, int>&, int, const llvm::MachineBasicBlock*): Assertion `P.first->second == EHScope && "MBB is part of two scopes!"' failed.
```
Trunk reproducer (`--target=thumbv7-windows`): https://godbolt.org/z/efqhnWPa5
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs