From d0caa6e878b2cd55343aaff572a96453ae4d9a64 Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Thu, 13 Feb 2014 12:39:21 +0000 Subject: [sanitizer] address some of the dvyukov's comments on previous commits git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201322 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 4ad43604b..958dd4d2a 100644 --- a/lib/sanitizer_common/sanitizer_bvgraph.h +++ b/lib/sanitizer_common/sanitizer_bvgraph.h @@ -34,12 +34,12 @@ class BVGraph { // Returns true if a new edge was added. bool addEdge(uptr from, uptr to) { - check(from|to); + check(from, to); return v[from].setBit(to); } bool hasEdge(uptr from, uptr to) const { - check(from|to); + check(from, to); return v[from].getBit(to); } @@ -78,7 +78,7 @@ class BVGraph { } private: - void check(uptr idx) const { CHECK_LE(idx, size()); } + void check(uptr idx1, uptr idx2) const { CHECK_LE(idx1|idx2, size()); } BV v[kSize]; }; -- cgit v1.2.3