diff options
author | Reid Kleckner <rnk@google.com> | 2018-08-14 01:55:37 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2018-08-14 01:55:37 +0000 |
commit | 11f9f8acdec0685d39099ea25ac2cb49f82003a9 (patch) | |
tree | 6e59af817088865427f48a1f3fa743e90dce77e5 /clang/lib/StaticAnalyzer/Core/CheckerHelpers.cpp | |
parent | c7816800d87f848907b1c86d6fc614ad03585c46 (diff) | |
download | bcm5719-llvm-11f9f8acdec0685d39099ea25ac2cb49f82003a9.tar.gz bcm5719-llvm-11f9f8acdec0685d39099ea25ac2cb49f82003a9.zip |
Revert r339623 "Model type attributes as regular Attrs."
This breaks compiling atlwin.h in Chromium. I'm sure the code is invalid
in some way, but we put a lot of work into accepting it, and I'm sure
rejecting it was not an intended consequence of this refactoring. :)
llvm-svn: 339638
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/CheckerHelpers.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Core/CheckerHelpers.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/CheckerHelpers.cpp b/clang/lib/StaticAnalyzer/Core/CheckerHelpers.cpp index e73a22ae398..9d1ee75d3d6 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() == attr::TypeNullable) + if (AttrType->getAttrKind() == AttributedType::attr_nullable) return Nullability::Nullable; - else if (AttrType->getAttrKind() == attr::TypeNonNull) + else if (AttrType->getAttrKind() == AttributedType::attr_nonnull) return Nullability::Nonnull; return Nullability::Unspecified; } |