r252120 - Fix build break
David Majnemer via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 4 17:10:42 PST 2015
Author: majnemer
Date: Wed Nov 4 19:10:42 2015
New Revision: 252120
URL: http://llvm.org/viewvc/llvm-project?rev=252120&view=rev
Log:
Fix build break
Modified:
cfe/trunk/lib/Lex/PPMacroExpansion.cpp
Modified: cfe/trunk/lib/Lex/PPMacroExpansion.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/PPMacroExpansion.cpp?rev=252120&r1=252119&r2=252120&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/PPMacroExpansion.cpp (original)
+++ cfe/trunk/lib/Lex/PPMacroExpansion.cpp Wed Nov 4 19:10:42 2015
@@ -1639,10 +1639,9 @@ void Preprocessor::ExpandBuiltinMacro(To
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)
More information about the cfe-commits
mailing list