summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2012-09-15 02:48:31 +0000
committerJordan Rose <jordan_rose@apple.com>2012-09-15 02:48:31 +0000
commitfa9e4badce2199071bd8a742a6e2f8a42533bf7c (patch)
tree53a21c40761d1e09bca5be2d886e0f6659af6aa2 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent38f8bbecba5a632fe1b628400e46e7c4deb6a2b0 (diff)
downloadbcm5719-llvm-fa9e4badce2199071bd8a742a6e2f8a42533bf7c.tar.gz
bcm5719-llvm-fa9e4badce2199071bd8a742a6e2f8a42533bf7c.zip
-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 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud