diff options
author | Nandor Licker <n@ndor.email> | 2019-11-11 11:13:34 +0000 |
---|---|---|
committer | Nandor Licker <n@ndor.email> | 2019-11-27 20:07:19 +0000 |
commit | f584f04dab69ab15c8942753a145f0c6e7693bcc (patch) | |
tree | 0882aa0649652417b7dd68f6565e1c42c2b2b06c /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 9283681e168141bab9a883e48ce1da80b86afca3 (diff) | |
download | llvm-f584f04dab69ab15c8942753a145f0c6e7693bcc.zip llvm-f584f04dab69ab15c8942753a145f0c6e7693bcc.tar.gz llvm-f584f04dab69ab15c8942753a145f0c6e7693bcc.tar.bz2 |
[ConstExprPreter] Removed the flag forcing the use of the interpreter
Summary:
Removed the ```-fforce-experimental-new-constant-interpreter flag```, leaving
only the ```-fexperimental-new-constant-interpreter``` one. The interpreter
now always emits an error on an unsupported feature.
Allowing the interpreter to bail out would require a mapping from APValue to
interpreter memory, which will not be necessary in the final version. It is
more sensible to always emit an error if the interpreter fails.
Reviewers: jfb, Bigcheese, rsmith, dexonsmith
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D70071
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 56f6653..74831e7 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -2854,8 +2854,6 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK, getLastArgIntValue(Args, OPT_fconstexpr_steps, 1048576, Diags); Opts.EnableNewConstInterp = Args.hasArg(OPT_fexperimental_new_constant_interpreter); - Opts.ForceNewConstInterp = - Args.hasArg(OPT_fforce_experimental_new_constant_interpreter); Opts.BracketDepth = getLastArgIntValue(Args, OPT_fbracket_depth, 256, Diags); Opts.DelayedTemplateParsing = Args.hasArg(OPT_fdelayed_template_parsing); Opts.NumLargeByValueCopy = |