[cfe-commits] r133012 - /cfe/trunk/docs/BlockLanguageSpec.txt
Blaine Garst
blaine at apple.com
Tue Jun 14 14:41:00 PDT 2011
Author: blaine
Date: Tue Jun 14 16:41:00 2011
New Revision: 133012
URL: http://llvm.org/viewvc/llvm-project?rev=133012&view=rev
Log:
fix example as per rdar://problem/9461587
Modified:
cfe/trunk/docs/BlockLanguageSpec.txt
Modified: cfe/trunk/docs/BlockLanguageSpec.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/BlockLanguageSpec.txt?rev=133012&r1=133011&r2=133012&view=diff
==============================================================================
--- cfe/trunk/docs/BlockLanguageSpec.txt (original)
+++ cfe/trunk/docs/BlockLanguageSpec.txt Tue Jun 14 16:41:00 2011
@@ -151,7 +151,7 @@
...a Block that used foo would import the variables as const variations:
const Foo block_foo = foo; // const copy constructor
const Foo &block_fooRef = fooRef;
- const Foo *block_fooPtr = fooPtr;
+ Foo *const block_fooPtr = fooPtr;
Stack-local objects are copied into a Block via a copy const constructor. If no such constructor exists, it is considered an error to reference such objects from within the Block compound statements. A destructor is run as control leaves the compound statement that contains the Block literal expression.
More information about the cfe-commits
mailing list