[PATCH] D70568: [Support] Possibly use exception handler in the Crash Recovery Context in the same way as global exceptions
Hans Wennborg via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 10 08:02:34 PST 2020
hans accepted this revision.
hans added a comment.
This revision is now accepted and ready to land.
Looks good to me. Thanks for pushing this forward!
(Only one very minor comment.)
================
Comment at: llvm/unittests/Support/CrashRecoveryTest.cpp:72
+ sys::RemoveFileOnSignal(Filename);
+ llvm::sys::AddSignalHandler(incrementGlobalWithCookie, nullptr);
+ GlobalInt = 0;
----------------
Is there a purpose to passing the pointer her, or could it just use incrementGlobal? If we can't, maybe call it WithPointer or something instead (or use an overload) - I was confused by the Cookie part until I realize you just mean it takes some argument.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70568/new/
https://reviews.llvm.org/D70568
More information about the cfe-commits
mailing list