summaryrefslogtreecommitdiffstats
path: root/docs/ReleaseNotes.html
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2012-07-09 16:54:44 +0000
committerJordan Rose <jordan_rose@apple.com>2012-07-09 16:54:44 +0000
commit6deae7cc8de2fb7578ed244d064cd34af744aac5 (patch)
treecc986f8896a349f8f3d39b3e5c0237650ef28d9e /docs/ReleaseNotes.html
parent2964ffed269794cb6d13d58a287001d2d4433a55 (diff)
Downgrade the "direct comparison" error for ObjC literals to a warning.
Chris pointed out that while the comparison is certainly problematic and does not have well-defined behavior, it isn't any worse than some of the other abuses that we merely warn about and doesn't need to make the compilation fail. Revert the release notes change (r159766) now that this is just a new warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159939 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/ReleaseNotes.html')
-rw-r--r--docs/ReleaseNotes.html16
1 files changed, 1 insertions, 15 deletions
diff --git a/docs/ReleaseNotes.html b/docs/ReleaseNotes.html
index 6c38c712e7..b820e8dc3f 100644
--- a/docs/ReleaseNotes.html
+++ b/docs/ReleaseNotes.html
@@ -218,21 +218,7 @@ model can be used.
<h3 id="objcchanges">Objective-C Language Changes in Clang</h3>
<!-- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -->
-<ul>
- <li>
- <p>It is now an error to compare against the addresses of Objective-C
- literals. This is usually a simple mistake (using <code>==</code> instead
- of <code>-isEqual:</code>), and the result depends on the implementation
- of the various literals, none of which are guaranteed to be uniqued or
- always newly-allocated.</p>
- <p>In the past, we allowed comparisons against literal strings
- (<code>@"..."</code>), since they are currently uniqued across
- translation units at link time. This is an implementation detail and
- should not be relied upon. If you are using such code, please use global
- string constants instead (<code>NSString * const MyConst = @"..."</code>)
- or use <code>-isEqual:</code>.</p>
- </li>
-</ul>
+<p>...</p>
<!-- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -->
<h3 id="apichanges">Internal API Changes</h3>