diff options
author | Haojian Wu <hokein.wu@gmail.com> | 2020-03-26 16:07:50 +0100 |
---|---|---|
committer | Haojian Wu <hokein.wu@gmail.com> | 2020-03-26 16:25:32 +0100 |
commit | 62dea6e9be31b100962f9ad41c1b79467a53f6cd (patch) | |
tree | a8c5b793f20b5c20da428f3adf7ca52153c62045 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 1e303962232d624704d0102d8e9dbb62cca8fb99 (diff) | |
download | llvm-62dea6e9be31b100962f9ad41c1b79467a53f6cd.zip llvm-62dea6e9be31b100962f9ad41c1b79467a53f6cd.tar.gz llvm-62dea6e9be31b100962f9ad41c1b79467a53f6cd.tar.bz2 |
Revert "[AST] Build recovery expressions by default for C++."
This reverts commit 0788acbccbec094903a3425ffe5a98f8d55cbd64.
This reverts commit c2d7a1f79cedfc9fcb518596aa839da4de0adb69: Revert "[clangd] Add test for FindTarget+RecoveryExpr (which already works). NFC"
It causes a crash on invalid code:
class X {
decltype(unresolved()) foo;
};
constexpr int s = sizeof(X);
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 08e0700..dc5e932 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -2909,7 +2909,7 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK, if (Args.hasArg(OPT_fconcepts_ts)) Diags.Report(diag::warn_fe_concepts_ts_flag); Opts.RecoveryAST = - Args.hasFlag(OPT_frecovery_ast, OPT_fno_recovery_ast, Opts.CPlusPlus); + Args.hasFlag(OPT_frecovery_ast, OPT_fno_recovery_ast, false); Opts.HeinousExtensions = Args.hasArg(OPT_fheinous_gnu_extensions); Opts.AccessControl = !Args.hasArg(OPT_fno_access_control); Opts.ElideConstructors = !Args.hasArg(OPT_fno_elide_constructors); |