]> granicus.if.org Git - clang/commitdiff
remove duplicate code.
authorFariborz Jahanian <fjahanian@apple.com>
Thu, 13 Sep 2012 20:26:40 +0000 (20:26 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Thu, 13 Sep 2012 20:26:40 +0000 (20:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163833 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclObjC.cpp

index bf7755fbdf828bf1c0332b637b99f862490baaa2..adbcd7074e7e4ea5b99132c74b728af511dc9ffd 100644 (file)
@@ -288,9 +288,6 @@ static bool
 HasExplicitOwnershipAttr(Sema &S, ParmVarDecl *Param) {
   QualType T = Param->getType();
   
-  if (!T->isPointerType() && !T->isReferenceType())
-    return true;
-  
   if (const PointerType *PT = T->getAs<PointerType>()) {
     T = PT->getPointeeType();
   } else if (const ReferenceType *RT = T->getAs<ReferenceType>()) {