LangOpts in clang 13


in CompilerInvocation::ParseLangArgs I set values of a LangOpt parameter.
I use this value in Sema.Initialize .
in clang 11 the value is correct but in clang 13 it seems to have the default value.
I saw few changes regarding that but could not really understand what I need to do to fix it.
any idea?

seems like new parameter that I have added has default value while others kept the new value

more details:
in CompilerInvocation::ParseLangArgs
if (Args.hasFlag(OPT_XXX, OPT_mno_XXX, XXXTypeDefault)) {
Opts.NativeXXX = 1;

in Sema::Initialize:
if (getLangOpts().NativeXXX) {