llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Assertion failed: (CGF.Builder.GetInsertBlock() && InvokeDest), function EmitSehScope, file CGCleanup.cpp, line 1333

Open ahatanak opened this issue 4 years ago • 5 comments

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

ahatanak avatar Jun 06 '22 19:06 ahatanak

@llvm/issue-subscribers-clang-codegen

llvmbot avatar Jun 06 '22 19:06 llvmbot

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

ahatanak avatar Jun 06 '22 19:06 ahatanak

-fasync-exceptions is not officially supported yet. 2nd part of this feature is under review in PR https://reviews.llvm.org/D102817/new/

tentzen avatar Jun 09 '22 20:06 tentzen

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?

ahatanaka avatar Dec 12 '22 23:12 ahatanaka

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: @.***>

panukulv avatar Dec 12 '22 23:12 panukulv