summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/CheckerHelpers.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2018-08-13 22:07:09 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2018-08-13 22:07:09 +0000
commitf79178635abeec3bf958a08eb760d6db911ee3c1 (patch)
treec9cf488faba0e90cec9623aefe73c907dff70aad /clang/lib/StaticAnalyzer/Core/CheckerHelpers.cpp
parentcade635c77004ddfabe97a0bbefefcf90d322ed8 (diff)
downloadbcm5719-llvm-f79178635abeec3bf958a08eb760d6db911ee3c1.tar.gz
bcm5719-llvm-f79178635abeec3bf958a08eb760d6db911ee3c1.zip
Model type attributes as regular Attrs.
Specifically, AttributedType now tracks a regular attr::Kind rather than having its own parallel Kind enumeration, and AttributedTypeLoc now holds an Attr* instead of holding an ad-hoc collection of Attr fields. Differential Revision: https://reviews.llvm.org/D50526 llvm-svn: 339623
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/CheckerHelpers.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/CheckerHelpers.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/CheckerHelpers.cpp b/clang/lib/StaticAnalyzer/Core/CheckerHelpers.cpp
index 9d1ee75d3d6..e73a22ae398 100644
--- a/clang/lib/StaticAnalyzer/Core/CheckerHelpers.cpp
+++ b/clang/lib/StaticAnalyzer/Core/CheckerHelpers.cpp
@@ -103,9 +103,9 @@ Nullability getNullabilityAnnotation(QualType Type) {
const auto *AttrType = Type->getAs<AttributedType>();
if (!AttrType)
return Nullability::Unspecified;
- if (AttrType->getAttrKind() == AttributedType::attr_nullable)
+ if (AttrType->getAttrKind() == attr::TypeNullable)
return Nullability::Nullable;
- else if (AttrType->getAttrKind() == AttributedType::attr_nonnull)
+ else if (AttrType->getAttrKind() == attr::TypeNonNull)
return Nullability::Nonnull;
return Nullability::Unspecified;
}
OpenPOWER on IntegriCloud