From 11f9f8acdec0685d39099ea25ac2cb49f82003a9 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Tue, 14 Aug 2018 01:55:37 +0000 Subject: 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 --- clang/lib/StaticAnalyzer/Core/CheckerHelpers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/lib/StaticAnalyzer/Core/CheckerHelpers.cpp') 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(); 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; } -- cgit v1.2.3