Switch a couple of users of LangOpts::GNUMode to the more appropriate LangOpts::GNUKeywords.

llvm-svn: 333233
This commit is contained in:
Richard Smith 2018-05-24 21:51:52 +00:00
parent 06e0fd3bc1
commit 7b301e2410
2 changed files with 3 additions and 3 deletions

View File

@ -1371,8 +1371,8 @@ static void AddTypeSpecifierResults(const LangOptions &LangOpts,
} else
Results.AddResult(Result("__auto_type", CCP_Type));
// GNU extensions
if (LangOpts.GNUMode) {
// GNU keywords
if (LangOpts.GNUKeywords) {
// FIXME: Enable when we actually support decimal floating point.
// Results.AddResult(Result("_Decimal32"));
// Results.AddResult(Result("_Decimal64"));

View File

@ -4459,7 +4459,7 @@ static void AddKeywordsToConsumer(Sema &SemaRef,
}
}
if (SemaRef.getLangOpts().GNUMode)
if (SemaRef.getLangOpts().GNUKeywords)
Consumer.addKeywordResult("typeof");
} else if (CCC.WantFunctionLikeCasts) {
static const char *const CastableTypeSpecs[] = {