summaryrefslogtreecommitdiffstats
path: root/clang/docs/AutomaticReferenceCounting.html
diff options
context:
space:
mode:
Diffstat (limited to 'clang/docs/AutomaticReferenceCounting.html')
-rw-r--r--clang/docs/AutomaticReferenceCounting.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/docs/AutomaticReferenceCounting.html b/clang/docs/AutomaticReferenceCounting.html
index ff65f3be480..1416df58e45 100644
--- a/clang/docs/AutomaticReferenceCounting.html
+++ b/clang/docs/AutomaticReferenceCounting.html
@@ -1006,7 +1006,9 @@ operation has a weak-unavailable type.</p>
<h1>Storage duration of <tt>__autoreleasing</tt> objects</h1>
<p>A program is ill-formed if it declares an <tt>__autoreleasing</tt>
-object of non-automatic storage duration.</p>
+object of non-automatic storage duration. A program is ill-formed
+if it captures an <tt>__autoreleasing</tt> object in a block or,
+unless by reference, in a C++11 lambda.</p>
<div class="rationale"><p>Rationale: autorelease pools are tied to the
current thread and scope by their nature. While it is possible to
OpenPOWER on IntegriCloud