]> granicus.if.org Git - clang/commitdiff
Update documentation for // rdar://9619861
authorFariborz Jahanian <fjahanian@apple.com>
Wed, 6 Jul 2011 21:58:44 +0000 (21:58 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Wed, 6 Jul 2011 21:58:44 +0000 (21:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134544 91177308-0d34-0410-b5e6-96231b3b80d8

docs/AutomaticReferenceCounting.html

index 8b52038202a35cf4da7a0762b9f32397bc94a4ae..88704d939abbd9929afe380d3df21243f2bfdd32 100644 (file)
@@ -580,8 +580,9 @@ respectively, is poor form.</p>
 <p>In general, a program which attempts to implicitly or explicitly
 convert a value of retainable object pointer type to any
 non-retainable type, or vice-versa, is ill-formed.  For example, an
-Objective-C object pointer shall not be converted to <tt>intptr_t</tt>
-or <tt>void*</tt>.  The <a href="#objects.operands.casts">bridged
+Objective-C object pointer shall not be converted to <tt>void*</tt>. 
+As an exception, cast to <tt>intptr_t</tt> is allowed becuase such 
+casts are not transferring ownership. The <a href="#objects.operands.casts">bridged
 casts</a> may be used to perform these conversions where
 necessary.</p>