[PATCH] D137939: [CGObjC] Open cleanup scope before SaveAndRestore CurrentFuncletPad and push CatchRetScope early
Stefan Gränitz via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 14 05:55:32 PST 2022
sgraenitz created this revision.
sgraenitz added reviewers: theraven, rnk.
Herald added a project: All.
sgraenitz requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Pushing the `CatchRetScope` early causes cleanups for catch parameters to be emitted in the basic block of the catch handler instead of the `catchret.dest` block. This is important because the latter is not part of the catchpad and this caused code truncations due to ARC PreISel intrinsics in WinEHPrepare.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D137939
Files:
clang/lib/CodeGen/CGObjCRuntime.cpp
clang/test/CodeGenObjCXX/arc-exceptions-seh.mm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137939.475122.patch
Type: text/x-patch
Size: 4597 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221114/61770783/attachment.bin>
More information about the cfe-commits
mailing list