summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PPMacroExpansion.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2015-06-29 17:25:49 +0000
committerDouglas Gregor <dgregor@apple.com>2015-06-29 17:25:49 +0000
commitcdfea9a7a72898a4fbbfa0cbfa9f7fef25ece04d (patch)
treef840199bc7f327afadeff117982acd8effe05894 /clang/lib/Lex/PPMacroExpansion.cpp
parent51e3d7b2e0096da0b4d83c70edc6604903404d6e (diff)
downloadbcm5719-llvm-cdfea9a7a72898a4fbbfa0cbfa9f7fef25ece04d.tar.gz
bcm5719-llvm-cdfea9a7a72898a4fbbfa0cbfa9f7fef25ece04d.zip
Make __has_extension(assume_nonnull) always true.
llvm-svn: 240969
Diffstat (limited to 'clang/lib/Lex/PPMacroExpansion.cpp')
-rw-r--r--clang/lib/Lex/PPMacroExpansion.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Lex/PPMacroExpansion.cpp b/clang/lib/Lex/PPMacroExpansion.cpp
index ea0af924736..3855c802aeb 100644
--- a/clang/lib/Lex/PPMacroExpansion.cpp
+++ b/clang/lib/Lex/PPMacroExpansion.cpp
@@ -1226,6 +1226,7 @@ static bool HasExtension(const Preprocessor &PP, const IdentifierInfo *II) {
// Because we inherit the feature list from HasFeature, this string switch
// must be less restrictive than HasFeature's.
return llvm::StringSwitch<bool>(Extension)
+ .Case("assume_nonnull", true)
.Case("nullability", true)
// C11 features supported by other languages as extensions.
.Case("c_alignas", true)
OpenPOWER on IntegriCloud