[Sema][ObjC] Allow conversions between pointers to ObjC pointers and
authorAkira Hatanaka <ahatanaka@apple.com>
Wed, 25 Aug 2021 16:55:50 +0000 (09:55 -0700)
committerAkira Hatanaka <ahatanaka@apple.com>
Wed, 25 Aug 2021 17:22:29 +0000 (10:22 -0700)
commitcc4bfd7f59d5a0024ada2a5c2a6f46d53290882b
tree6e0f1292bee1e527b55c7841498a3ac00656cf23
parentab55cc6cef270c565aa31b517533432b05903389
[Sema][ObjC] Allow conversions between pointers to ObjC pointers and
pointers to structs

clang was just being conservative and trying to prevent users from
messing up the qualifier on the inner pointer type. Lifting this
restriction enables using some of the libc++ templates with ObjC pointer
arguments, which clang currently rejects.

rdar://79018677

Differential Revision: https://reviews.llvm.org/D107021
clang/lib/Sema/SemaExprObjC.cpp
clang/test/SemaObjC/arc-type-conversion.m