diff options
author | Kuba Mracek <mracek@apple.com> | 2017-03-26 20:59:23 +0000 |
---|---|---|
committer | Kuba Mracek <mracek@apple.com> | 2017-03-26 20:59:23 +0000 |
commit | a1737293fc44244b9404b20f5b3917de408cc1e7 (patch) | |
tree | 7f570475a5d17876dbdbab4fb50eb8644bd09cd3 /llvm/lib/Support/CommandLine.cpp | |
parent | e4b073a4e825baece43545130876679764aee882 (diff) | |
download | llvm-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