]> granicus.if.org Git - clang/commit
-Wuninitialized should not warn about variables captured by blocks as byref.
authorTed Kremenek <kremenek@apple.com>
Thu, 31 Mar 2011 22:32:41 +0000 (22:32 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 31 Mar 2011 22:32:41 +0000 (22:32 +0000)
commitbc8b44c4ee7f9c4c3ad296369e72feda61bdb580
treea86b31b86e5943a4097b5b224e095fd0c150f1b1
parent5b67a82a2621c148694ff0f0352aa949b363934c
-Wuninitialized should not warn about variables captured by blocks as byref.

Note this can potentially be enhanced to detect if the __block variable
is actually written by the block, or only when the block "escapes" or
is actually used, but that requires more analysis than it is probably worth
for this simple check.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128681 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/UninitializedValues.cpp
test/Sema/uninit-variables.c