diff options
| author | Jordan Rose <jordan_rose@apple.com> | 2012-09-15 02:48:31 +0000 |
|---|---|---|
| committer | Jordan Rose <jordan_rose@apple.com> | 2012-09-15 02:48:31 +0000 |
| commit | fa9e4badce2199071bd8a742a6e2f8a42533bf7c (patch) | |
| tree | 53a21c40761d1e09bca5be2d886e0f6659af6aa2 /clang/lib/CodeGen/CodeGenModule.h | |
| parent | 38f8bbecba5a632fe1b628400e46e7c4deb6a2b0 (diff) | |
| download | llvm-fa9e4badce2199071bd8a742a6e2f8a42533bf7c.zip llvm-fa9e4badce2199071bd8a742a6e2f8a42533bf7c.tar.gz llvm-fa9e4badce2199071bd8a742a6e2f8a42533bf7c.tar.bz2 | |
-Warc-retain-cycles: warn at variable initialization as well as assignment.
Specifically, this should warn:
__block block_t a = ^{ a(); };
Furthermore, this case which previously warned now does not, since the value
of 'b' is captured before the assignment occurs:
block_t b; // not __block
b = ^{ b(); };
(This will of course warn under -Wuninitialized, as before.)
<rdar://problem/11015883>
llvm-svn: 163962
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
0 files changed, 0 insertions, 0 deletions
