diff options
Diffstat (limited to 'contrib/llvm-project/clang/lib/Basic/CodeGenOptions.cpp')
-rw-r--r-- | contrib/llvm-project/clang/lib/Basic/CodeGenOptions.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/llvm-project/clang/lib/Basic/CodeGenOptions.cpp b/contrib/llvm-project/clang/lib/Basic/CodeGenOptions.cpp index 182d0a2fa4d8..79d715305ef2 100644 --- a/contrib/llvm-project/clang/lib/Basic/CodeGenOptions.cpp +++ b/contrib/llvm-project/clang/lib/Basic/CodeGenOptions.cpp @@ -27,6 +27,8 @@ void CodeGenOptions::resetNonModularOptions(StringRef ModuleFormat) { #define ENUM_DEBUGOPT(Name, Type, Bits, Default) #define CODEGENOPT(Name, Bits, Default) Name = Default; #define ENUM_CODEGENOPT(Name, Type, Bits, Default) set##Name(Default); +// Do not reset AST affecting code generation options. +#define AFFECTING_VALUE_CODEGENOPT(Name, Bits, Default) #include "clang/Basic/CodeGenOptions.def" // Next reset all debug options that can always be reset, because they never |