Assertion failed: (CGF.Builder.GetInsertBlock() && InvokeDest), function EmitSehScope, file CGCleanup.cpp, line 1333
The assertion fails when the following code is compiled:
$ cat test.cpp
bool foo() {
try {
} catch (int i) {
return true;
} catch (...) {
}
return false;
}
$ clang++ -std=c++20 "-target" "x86_64-unknown-windows-msvc19" -c -o /dev/null "-fasync-exceptions" test.cpp
@llvm/issue-subscribers-clang-codegen
It looks like clang is calling EmitSehCppScopeEnd, but isn't calling EmitSehCppScopeBegin. The calls to these functions in CGCleanup.cpp were added in https://github.com/llvm/llvm-project/commit/797ad701522988e212495285dade8efac41a24d4
-fasync-exceptions is not officially supported yet. 2nd part of this feature is under review in PR https://reviews.llvm.org/D102817/new/
It looks like the patch has been approved. Can you commit the patch? If there is still more work to do, it is possible to make the option experimental so that users know there still might be issues?
This way, the quality team is not worried about startups but the worries are more value than on the performance, distribution of returns in total overall, to the smallest point, whether it is worth tired or tired for free, it may be wrong, so it must come to new focus, re-assessment, whether it is going to go on or change good
จาก: Akira Hatanaka @.> ส่ง: 13 ธันวาคม 2565 6:28 ถึง: llvm/llvm-project @.> สำเนาถึง: Subscribed @.***> ชื่อเรื่อง: Re: [llvm/llvm-project] Assertion failed: (CGF.Builder.GetInsertBlock() && InvokeDest), function EmitSehScope, file CGCleanup.cpp, line 1333 (Issue #55904)
It looks like the patch has been approved. Can you commit the patch? If there is still more work to do, it is possible to make the option experimental so that users know there still might be issues?
— Reply to this email directly, view it on GitHubhttps://github.com/llvm/llvm-project/issues/55904#issuecomment-1347488638, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AX6ATV5WHUV7ZQB4PZOR66LWM6YKZANCNFSM5YAO2FUA. You are receiving this because you are subscribed to this thread.Message ID: @.***>