From d56b7358a2c768c9740ceccf8c83f67514292e16 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Thu, 5 Nov 2015 01:10:42 +0000 Subject: [PATCH] Fix build break git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@252120 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Lex/PPMacroExpansion.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Lex/PPMacroExpansion.cpp b/lib/Lex/PPMacroExpansion.cpp index 40b5496ad7..2497e5ec38 100644 --- a/lib/Lex/PPMacroExpansion.cpp +++ b/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(Feature) - .Case("__make_integer_seq", LangOpts.CPlusPlus) + .Case("__make_integer_seq", getLangOpts().CPlusPlus) .Default(false); } } else if (II == Ident__has_attribute) -- 2.40.0