aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-09-13 20:26:40 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-09-13 20:26:40 +0000
commit9fb6f7939c4b76b444b7f7b2761b130e7709ac08 (patch)
tree8ff04d526df3a8f46c85229675828fcc5c31b408
parent75379455fc88ca1f021e55ffe1cab3a9c2b2a37a (diff)
remove duplicate code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163833 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Sema/SemaDeclObjC.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp
index bf7755fbdf..adbcd7074e 100644
--- a/lib/Sema/SemaDeclObjC.cpp
+++ b/lib/Sema/SemaDeclObjC.cpp
@@ -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>()) {