When compiling with -munwind-tables, the SEH filter funclet needs the uwtable
function attribute, which gets automatically added if we use
SetInternalFunctionAttributes. The filter funclet is internal so this seems
appropriate.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Thanks, the code change looks good, but please adjust the tests a bit.
clang/test/CodeGen/exceptions-seh-finally.c | ||
---|---|---|
284–286 | We shouldn't be marking this thing noinline. I believe it appears because clang applies noinline everywhere at O0. Please add -O1 -disable-llvm-passes to the RUN line so that it doesn't appear. The appearance of nounwind should be expected, so keep that here. | |
clang/test/CodeGenCXX/exceptions-seh-filter-uwtable.cpp | ||
2 | Is "arm64-windowsj" a typo? Also, please add -O1 -disable-llvm-passes as above. |
lgtm, just some test comment tweaks.
clang/test/CodeGen/exceptions-seh-finally.c | ||
---|---|---|
3 | I guess it would be best to move the comment about why we pass -O1 -disable-llvm-passes here. We are doing it to avoid applying optnone and noinline attributes everywhere. | |
284–286 | Please leave at least "Look for the absence of noinline." from the original comment. I think I added this test because we used to mark these noinline. |
I guess it would be best to move the comment about why we pass -O1 -disable-llvm-passes here. We are doing it to avoid applying optnone and noinline attributes everywhere.