Make warn-weak-field.m test pass again.

llvm-svn: 64927
This commit is contained in:
Fariborz Jahanian 2009-02-18 18:14:41 +00:00
parent 7a1db33e77
commit d35c792ebb
1 changed files with 2 additions and 0 deletions

View File

@ -3501,6 +3501,8 @@ Sema::DeclTy *Sema::ActOnField(Scope *S, DeclTy *TagD,
} }
ProcessDeclAttributes(NewFD, D); ProcessDeclAttributes(NewFD, D);
if (T.getObjCGCAttr() == QualType::Weak)
Diag(Loc, diag::warn_attribute_weak_on_field);
if (D.getInvalidType() || InvalidDecl) if (D.getInvalidType() || InvalidDecl)
NewFD->setInvalidDecl(); NewFD->setInvalidDecl();