summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2017-01-24 16:53:43 +0000
committerHans Wennborg <hans@hanshq.net>2017-01-24 16:53:43 +0000
commitb32860f4c96be739d8cdc9705470ce5b7a33648f (patch)
treeeab0fedefb10ef1689d9adebabcfc430ce67eb28 /test
parentadbedcc4b98fb63e3a89baff23002c866fb6317a (diff)
Merging r292874:
------------------------------------------------------------------------ r292874 | dcoughlin | 2017-01-23 18:10:59 -0800 (Mon, 23 Jan 2017) | 6 lines Revert "[analyzer] Fix memory space of static locals seen from nested blocks." This reverts commit r292800. It is causing null pointer dereference false positives when a block that captures a static local is evaluated at the top level. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_40@292947 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Analysis/dispatch-once.m7
1 files changed, 0 insertions, 7 deletions
diff --git a/test/Analysis/dispatch-once.m b/test/Analysis/dispatch-once.m
index 2f82718663..7d54147aeb 100644
--- a/test/Analysis/dispatch-once.m
+++ b/test/Analysis/dispatch-once.m
@@ -107,10 +107,3 @@ void test_block_var_from_outside_block() {
};
dispatch_once(&once, ^{}); // expected-warning{{Call to 'dispatch_once' uses the block variable 'once' for the predicate value.}}
}
-
-void test_static_var_from_outside_block() {
- static dispatch_once_t once;
- ^{
- dispatch_once(&once, ^{}); // no-warning
- };
-}