summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2013-03-13 14:26:35 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2013-03-13 14:26:35 +0000
commit3605f319ddc64f67deed76fa2689703109167e69 (patch)
tree87fee81320451b1e3ff985bbe8d5021892895615 /clang
parent2325273641d7d494662625b1fde2664054b9761f (diff)
downloadbcm5719-llvm-3605f319ddc64f67deed76fa2689703109167e69.tar.gz
bcm5719-llvm-3605f319ddc64f67deed76fa2689703109167e69.zip
Documentation: formatting fixes
llvm-svn: 176948
Diffstat (limited to 'clang')
-rw-r--r--clang/docs/AutomaticReferenceCounting.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/docs/AutomaticReferenceCounting.rst b/clang/docs/AutomaticReferenceCounting.rst
index 1bbfa0d168c..1457b6082d1 100644
--- a/clang/docs/AutomaticReferenceCounting.rst
+++ b/clang/docs/AutomaticReferenceCounting.rst
@@ -1347,7 +1347,7 @@ object pointer. The corresponding actual sequence executed is the
However, under certain circumstances, ARC is permitted to re-order and
eliminate operations in a manner which may alter the overall
computation history beyond what is permitted by the general "as if"
-rule of C/C++ and the :ref:`restrictions <_arc.objects.retains>` on
+rule of C/C++ and the :ref:`restrictions <arc.objects.retains>` on
the implementation of ``retain`` and ``release``.
.. admonition:: Rationale
@@ -1359,6 +1359,7 @@ the implementation of ``retain`` and ``release``.
example, consider the following code:
.. code-block:: objc
+
id x = _ivar;
[x foo];
@@ -1450,7 +1451,7 @@ dependency is not carried by values that are stored to objects.
itself cause dependence, but since generally the optimizer will not
be able to prove that the function doesn't depend on that parameter,
it will be forced to conservatively assume it does.
-
+
Dependency propagates to values loaded from a pointer because those
values might be invalidated by deallocating the object. For
example, given the code ``__strong id x = p->ivar;``, ARC must not
OpenPOWER on IntegriCloud