aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorKuba Mracek <mracek@apple.com>2017-03-26 20:59:23 +0000
committerKuba Mracek <mracek@apple.com>2017-03-26 20:59:23 +0000
commita1737293fc44244b9404b20f5b3917de408cc1e7 (patch)
tree7f570475a5d17876dbdbab4fb50eb8644bd09cd3 /llvm/lib/Support/CommandLine.cpp
parente4b073a4e825baece43545130876679764aee882 (diff)
downloadllvm-a1737293fc44244b9404b20f5b3917de408cc1e7.zip
llvm-a1737293fc44244b9404b20f5b3917de408cc1e7.tar.gz
llvm-a1737293fc44244b9404b20f5b3917de408cc1e7.tar.bz2
[tsan] Only Acquire/Release GCD queues if they're not NULL
While it's usually a bug to call GCD APIs, such as dispatch_after, with NULL as a queue, this often "somehow" works and TSan should maintain binary compatibility with existing code. This patch makes sure we don't try to call Acquire and Release on NULL queues, and add one such testcase for dispatch_after. Differential Revision: https://reviews.llvm.org/D31355 llvm-svn: 298820
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions