diff options
author | Alexandre Ganea <alexandre.ganea@ubisoft.com> | 2020-02-07 09:35:51 -0500 |
---|---|---|
committer | Alexandre Ganea <alexandre.ganea@ubisoft.com> | 2020-02-07 09:51:09 -0500 |
commit | 75f09b54429bee17a96e2ba7a2ac0f0a8a7f7e74 (patch) | |
tree | c9c075b6eb8bd504ecb650c05d5e7a4e4bfc19f7 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | ea9166b5a838d788a4ec0c9ddf0c83b09f49cfe4 (diff) | |
download | llvm-75f09b54429bee17a96e2ba7a2ac0f0a8a7f7e74.zip llvm-75f09b54429bee17a96e2ba7a2ac0f0a8a7f7e74.tar.gz llvm-75f09b54429bee17a96e2ba7a2ac0f0a8a7f7e74.tar.bz2 |
Re-land "[Clang][Driver] Remove -M group options ..." and "[Clang] Avoid crashing when generating crash diagnostics when '#pragma clang __debug ..."
This re-lands commits f41ec709d9d388dc43469e6ac7f51b6313f7e4af (https://reviews.llvm.org/D74076)
and commit 5fedc2b410853a6aef05e8edf19ebfc4e071e28f (https://reviews.llvm.org/D74070)
The previous build break was caused by '#pragma clang __debug llvm_unreachable' used in a non-assert build. Move it to a separate test in crash-report-with-asserts.c.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index d1d9a77..17e1906 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -3471,6 +3471,7 @@ static void ParsePreprocessorArgs(PreprocessorOptions &Opts, ArgList &Args, Opts.LexEditorPlaceholders = false; Opts.SetUpStaticAnalyzer = Args.hasArg(OPT_setup_static_analyzer); + Opts.DisablePragmaDebugCrash = Args.hasArg(OPT_disable_pragma_debug_crash); } static void ParsePreprocessorOutputArgs(PreprocessorOutputOptions &Opts, |