diff options
| author | Douglas Gregor <dgregor@apple.com> | 2013-11-08 02:04:24 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2013-11-08 02:04:24 +0000 |
| commit | 3940e3b9c7cc89284117112e07ad1c925dcd0ab4 (patch) | |
| tree | 1a839cc4fe9e59e230bbf276bdee7322fad09c96 /lib/CodeGen/CGExprScalar.cpp | |
| parent | 80aecf578fa0b24e1f4280820a1b6f1bf34862e0 (diff) | |
| download | clang-3940e3b9c7cc89284117112e07ad1c925dcd0ab4.tar.gz clang-3940e3b9c7cc89284117112e07ad1c925dcd0ab4.tar.bz2 clang-3940e3b9c7cc89284117112e07ad1c925dcd0ab4.tar.xz | |
Objective-C++ ARC: Improve the conversion to a const __unsafe_unretained reference.
Under ARC++, a reference to a const Objective-C pointer is implicitly
treated as __unsafe_unretained, and can be initialized with (e.g.) a
__strong lvalue. Make sure this behavior does not break template
argument deduction and (related) that partial ordering still prefers a
'T* const&' template over a 'T const&' template when this case kicks
in. Fixes <rdar://problem/14467941>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194239 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
0 files changed, 0 insertions, 0 deletions
