diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-04-25 01:21:50 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-04-25 01:21:50 +0000 |
commit | 4da0427a20f31db9b6934b280d49ab264236b34c (patch) | |
tree | dbd2bde50ac02b1976711fed609a444a654303c7 /lib/Parse/AttributeList.cpp | |
parent | c62a2fe1957626bc4b29402b2d0a3694dfaa3280 (diff) |
Hook up attribute 'objc_ownership_retain' to the analyzer. This attribute allows
users to specify that a method's argument is visibly retained (reference count
incremented).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70008 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/AttributeList.cpp')
-rw-r--r-- | lib/Parse/AttributeList.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Parse/AttributeList.cpp b/lib/Parse/AttributeList.cpp index a205c0468a..8048db887d 100644 --- a/lib/Parse/AttributeList.cpp +++ b/lib/Parse/AttributeList.cpp @@ -135,7 +135,7 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo *Name) { break; case 21: if (!memcmp(Str, "objc_ownership_retain", 21)) - return AT_objc_ownership_returns; + return AT_objc_ownership_retain; case 22: if (!memcmp(Str, "objc_ownership_returns", 22)) return AT_objc_ownership_returns; |