aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/IdentifierTable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Basic/IdentifierTable.cpp')
-rw-r--r--clang/lib/Basic/IdentifierTable.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Basic/IdentifierTable.cpp b/clang/lib/Basic/IdentifierTable.cpp
index 4bf9e12..06f0850 100644
--- a/clang/lib/Basic/IdentifierTable.cpp
+++ b/clang/lib/Basic/IdentifierTable.cpp
@@ -179,7 +179,8 @@ static KeywordStatus getKeywordStatusHelper(const LangOptions &LangOpts,
case CHAR8SUPPORT:
if (LangOpts.Char8) return KS_Enabled;
if (LangOpts.CPlusPlus20) return KS_Unknown;
- return KS_Future;
+ if (LangOpts.CPlusPlus) return KS_Future;
+ return KS_Unknown;
case KEYOBJC:
// We treat bridge casts as objective-C keywords so we can warn on them
// in non-arc mode.