aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorHaojian Wu <hokein.wu@gmail.com>2020-11-23 10:57:27 +0100
committerHaojian Wu <hokein.wu@gmail.com>2020-11-23 11:08:28 +0100
commitb1444edbf41c1fe9f7e676df6e873e9c9318283e (patch)
treee959bd5fc9e92db506ec248ecc6f1982a4b1f811 /clang/lib/Frontend/CompilerInvocation.cpp
parent76a626b2061bc8a33656a49ebcabbfa75c317d4c (diff)
downloadllvm-b1444edbf41c1fe9f7e676df6e873e9c9318283e.zip
llvm-b1444edbf41c1fe9f7e676df6e873e9c9318283e.tar.gz
llvm-b1444edbf41c1fe9f7e676df6e873e9c9318283e.tar.bz2
[AST] Build recovery expression by default for all language.
The dependency mechanism for C has been implemented, and we have rolled out this to all internal users, didn't see crashy issues, we consider it is stable enough. Differential Revision: https://reviews.llvm.org/D89046
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index f6753b5..35025a9 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -3020,11 +3020,9 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK,
!Args.hasArg(OPT_fno_concept_satisfaction_caching);
if (Args.hasArg(OPT_fconcepts_ts))
Diags.Report(diag::warn_fe_concepts_ts_flag);
- // Recovery AST still heavily relies on dependent-type machinery.
- Opts.RecoveryAST =
- Args.hasFlag(OPT_frecovery_ast, OPT_fno_recovery_ast, Opts.CPlusPlus);
- Opts.RecoveryASTType = Args.hasFlag(
- OPT_frecovery_ast_type, OPT_fno_recovery_ast_type, Opts.CPlusPlus);
+ Opts.RecoveryAST = Args.hasFlag(OPT_frecovery_ast, OPT_fno_recovery_ast);
+ Opts.RecoveryASTType =
+ Args.hasFlag(OPT_frecovery_ast_type, OPT_fno_recovery_ast_type);
Opts.HeinousExtensions = Args.hasArg(OPT_fheinous_gnu_extensions);
Opts.AccessControl = !Args.hasArg(OPT_fno_access_control);
Opts.ElideConstructors = !Args.hasArg(OPT_fno_elide_constructors);