summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/lib/Lex/PPMacroExpansion.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Lex/PPMacroExpansion.cpp b/clang/lib/Lex/PPMacroExpansion.cpp
index 40b5496ad7c..2497e5ec38b 100644
--- a/clang/lib/Lex/PPMacroExpansion.cpp
+++ b/clang/lib/Lex/PPMacroExpansion.cpp
@@ -1639,10 +1639,9 @@ void Preprocessor::ExpandBuiltinMacro(Token &Tok) {
if (FeatureII->getBuiltinID() != 0) {
Value = true;
} else {
- const LangOptions &LangOpts = PP.getLangOpts();
StringRef Feature = FeatureII->getName();
Value = llvm::StringSwitch<bool>(Feature)
- .Case("__make_integer_seq", LangOpts.CPlusPlus)
+ .Case("__make_integer_seq", getLangOpts().CPlusPlus)
.Default(false);
}
} else if (II == Ident__has_attribute)
OpenPOWER on IntegriCloud