In Objective-C ARC, completely ignore ownership qualifiers on the
authorDouglas Gregor <dgregor@apple.com>
Thu, 17 Jan 2013 23:36:45 +0000 (23:36 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 17 Jan 2013 23:36:45 +0000 (23:36 +0000)
commitcd78037ad117b12b549d7e7d1d1435f9803e678e
tree9022d221f8030c4bc2c9dea189da5e5432c3e9a1
parent0e9c94199cbb814f3f8b88eef951e8880c0da9cc
In Objective-C ARC, completely ignore ownership qualifiers on the
return type of a function by canonicalizing them away. They are
useless anyway, and conflict with our rules for template argument
deduction and __strong. Fixes <rdar://problem/12367446>.

llvm-svn: 172768
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/AST/ASTContext.cpp
clang/lib/Sema/SemaType.cpp
clang/test/SemaObjC/arc-objc-lifetime.m
clang/test/SemaObjCXX/arc-templates.mm