From eaf5f419a50a8a5297a0815f987c4dbf6c247017 Mon Sep 17 00:00:00 2001 From: Steve Naroff Date: Mon, 12 Nov 2007 04:22:52 +0000 Subject: [PATCH] Make sure @property is allowed within a category. Bug submitted by Keith Bauer. CookieJar:Desktop keith$ cat test.m #import git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44007 91177308-0d34-0410-b5e6-96231b3b80d8 --- Sema/SemaDecl.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Sema/SemaDecl.cpp b/Sema/SemaDecl.cpp index ec88087f89..3933963a71 100644 --- a/Sema/SemaDecl.cpp +++ b/Sema/SemaDecl.cpp @@ -1763,8 +1763,9 @@ Sema::DeclTy *Sema::ActOnField(Scope *S, DeclTy *TagDecl, if (isa(static_cast(TagDecl))) NewFD = new FieldDecl(Loc, II, T, BitWidth); - else if (isa(static_cast(TagDecl)) - || isa(static_cast(TagDecl))) + else if (isa(static_cast(TagDecl)) || + isa(static_cast(TagDecl)) || + isa(static_cast(TagDecl))) NewFD = new ObjcIvarDecl(Loc, II, T); else assert(0 && "Sema::ActOnField(): Unknown TagDecl"); -- 2.40.0