summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_bvgraph.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sanitizer_common/sanitizer_bvgraph.h')
-rw-r--r--lib/sanitizer_common/sanitizer_bvgraph.h6
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: