From 927771be78db63881cd45397155ab3eff9f15780 Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Thu, 13 Feb 2014 07:44:51 +0000 Subject: [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 --- lib/sanitizer_common/sanitizer_bvgraph.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/sanitizer_common/sanitizer_bvgraph.h') 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: -- cgit v1.2.3