diff options
author | Kostya Serebryany <kcc@google.com> | 2014-02-13 07:44:51 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2014-02-13 07:44:51 +0000 |
commit | 927771be78db63881cd45397155ab3eff9f15780 (patch) | |
tree | 7e807e19d5ea3a1518f47aff92a44f1fa08b6681 /lib/sanitizer_common/sanitizer_bvgraph.h | |
parent | d47031b9f0439a6adffbb8b1c81ce5898fda4469 (diff) |
[sanitizer] more code for deadlock detector, nothing really works yet (except for small unit tests).
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201302 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_bvgraph.h')
-rw-r--r-- | lib/sanitizer_common/sanitizer_bvgraph.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sanitizer_common/sanitizer_bvgraph.h b/lib/sanitizer_common/sanitizer_bvgraph.h index 7692c9f7a..5673a7a30 100644 --- a/lib/sanitizer_common/sanitizer_bvgraph.h +++ b/lib/sanitizer_common/sanitizer_bvgraph.h @@ -44,8 +44,8 @@ class BVGraph { } // Returns true if there is a path from the node 'from' - // to any of the nodes in 'target'. - bool isReachable(uptr from, const BV &target) { + // to any of the nodes in 'targets'. + bool isReachable(uptr from, const BV &targets) { BV to_visit, visited; to_visit.clear(); to_visit.setUnion(v[from]); @@ -56,7 +56,7 @@ class BVGraph { if (visited.setBit(idx)) to_visit.setUnion(v[idx]); } - return target.intersectsWith(visited); + return targets.intersectsWith(visited); } private: |