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/Sema/SemaObjCProperty.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/Sema/SemaObjCProperty.cpp')
-rw-r--r-- | clang/lib/Sema/SemaObjCProperty.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaObjCProperty.cpp b/clang/lib/Sema/SemaObjCProperty.cpp index ab7b83c4c33..3aad25b73a7 100644 --- a/clang/lib/Sema/SemaObjCProperty.cpp +++ b/clang/lib/Sema/SemaObjCProperty.cpp @@ -2384,7 +2384,7 @@ void Sema::ProcessPropertyDecl(ObjCPropertyDecl *property) { QualType modifiedTy = resultTy; if (auto nullability = AttributedType::stripOuterNullability(modifiedTy)) { if (*nullability == NullabilityKind::Unspecified) - resultTy = Context.getAttributedType(attr::TypeNonNull, + resultTy = Context.getAttributedType(AttributedType::attr_nonnull, modifiedTy, modifiedTy); } } @@ -2458,7 +2458,7 @@ void Sema::ProcessPropertyDecl(ObjCPropertyDecl *property) { QualType modifiedTy = paramTy; if (auto nullability = AttributedType::stripOuterNullability(modifiedTy)){ if (*nullability == NullabilityKind::Unspecified) - paramTy = Context.getAttributedType(attr::TypeNullable, + paramTy = Context.getAttributedType(AttributedType::attr_nullable, modifiedTy, modifiedTy); } } |