mirror of
https://github.com/intel/llvm.git
synced 2026-02-03 02:26:27 +08:00
Make warn-weak-field.m test pass again.
llvm-svn: 64927
This commit is contained in:
@@ -3501,6 +3501,8 @@ Sema::DeclTy *Sema::ActOnField(Scope *S, DeclTy *TagD,
|
||||
}
|
||||
|
||||
ProcessDeclAttributes(NewFD, D);
|
||||
if (T.getObjCGCAttr() == QualType::Weak)
|
||||
Diag(Loc, diag::warn_attribute_weak_on_field);
|
||||
|
||||
if (D.getInvalidType() || InvalidDecl)
|
||||
NewFD->setInvalidDecl();
|
||||
|
||||
Reference in New Issue
Block a user