Skip to content
This repository has been archived by the owner on Apr 23, 2020. It is now read-only.

Commit

Permalink
Fix build break
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@252120 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
majnemer committed Nov 5, 2015
1 parent 7cdb539 commit d56b735
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Lex/PPMacroExpansion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d56b735

Please sign in to comment.