[clang] [clang-repl] Take the opt level defaults from the driver and cc1 (PR #237999)
Vassil Vassilev via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 3 21:12:36 PST 2026
================
@@ -133,6 +134,9 @@ class Interpreter {
/// Compiler instance performing the incremental compilation.
std::unique_ptr<CompilerInstance> CI;
+ /// CI's startup CodeGenOptions, to tell explicit options from -O defaults.
+ std::unique_ptr<const CodeGenOptions> InitialCodeGenOpts;
----------------
vgvassilev wrote:
Don’t we have a copy already in the CompilerInvocation?
https://github.com/llvm/llvm-project/pull/237999
More information about the cfe-commits
mailing list