summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAlexandre Ganea <alexandre.ganea@ubisoft.com>2020-02-06 19:23:27 -0500
committerHans Wennborg <hans@chromium.org>2020-02-10 15:37:12 +0100
commit4759c6ef8b4ab8d17be3a5e6c96e890944bc515d (patch)
tree32bbd791819a58c973bba5787643bd107b611c4c /clang/lib/Frontend/CompilerInvocation.cpp
parent64515b35844b925bdb76821d03ad4d7ddebe06e7 (diff)
downloadbcm5719-llvm-4759c6ef8b4ab8d17be3a5e6c96e890944bc515d.tar.gz
bcm5719-llvm-4759c6ef8b4ab8d17be3a5e6c96e890944bc515d.zip
[Support] When using SEH, create a impl instance for CrashRecoveryContext. NFCI.
Previously, the SEH codepath in CrashRecoveryContext didn't create a CrashRecoveryContextImpl. The other codepaths (VEH and Unix) were creating it. When running with -fintegrated-cc1, this is needed to handle exit() as a jump to CrashRecoveryContext's exception filter, through a call to RaiseException. In that situation, we need a user-defined exception code, which is later interpreted as an exit() by the exception filter. This in turn needs to set RetCode accordingly, *inside* the exception filter, and *before* calling HandleCrash(). Differential Revision: https://reviews.llvm.org/D74078 (cherry picked from commit 2a3fa0fc5cd7d3398c0293915b0e569eaa0be24b)
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud