Skip to content

Commit

Permalink
fix example as per rdar://problem/9461587
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133012 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Blaine Garst committed Jun 14, 2011
1 parent 12e9f8e commit c31e016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/BlockLanguageSpec.txt
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ For example, given class Foo with member function fighter(void):
...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.

Expand Down

0 comments on commit c31e016

Please sign in to comment.