clang-cl -EHa doesn't generate calls to @llvm.seh.try.end #62723
Open
Description
Consider the following:
int volatile *NullPtr = 0;
void foo(), bar();
void baz() {
try {
try {
} catch(...) {
foo();
__builtin_unreachable();
}
*NullPtr = 0;
} catch (...) {
bar();
}
}
void baz2() {
try {
try {
*NullPtr = 0;
} catch(...) {
foo();
__builtin_unreachable();
}
} catch (...) {
bar();
}
}baz() and baz2() currently lower to exactly the same code; that seems unlikely to be correct.
Activity