[PATCH] D102817: [Windows SEH]: HARDWARE EXCEPTION HANDLING (MSVC -EHa) - Part 2
gmh via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 1 00:32:12 PST 2022
gmh5225 added a comment.
Code below will cause a crash.
void
parse()
{
throw std::exception("throw--------");
return;
}
int
main()
{
try
{
parse();
// 这里面return 没问题的
// return 1;
}
catch (const std::exception &e)
{
printf("except=%s\n", e.what());
// Crash when return in catch scope
return -1;
}
system("pause");
printf("end\n");
return 0;
}
Seems that function 'EmitSehCppScopeEnd' in PopCleanupBlock can not find insert point.
CGF.Builder.GetInsertBlock() equals nullptr
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102817/new/
https://reviews.llvm.org/D102817
More information about the llvm-commits
mailing list