Couple of helpers for objc's gc attributes.
No change in functionality.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64989 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp
index 9cd5bc8..294be70 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/lib/Sema/SemaDecl.cpp
@@ -3510,7 +3510,7 @@
   }
 
   ProcessDeclAttributes(NewFD, D);
-  if (T.getObjCGCAttr() == QualType::Weak)
+  if (T.isObjCGCWeak())
     Diag(Loc, diag::warn_attribute_weak_on_field);
 
   if (D.getInvalidType() || InvalidDecl)