Fix asan build: Fix compare function in BitTable.
The underlying memory does not have to be consecutive,
so we need to use proper iterator in the equal method.
Test: ./art/test/testrunner/run_build_test_target.py art-asan
Change-Id: Ice5c29cf8fdc9e6d5f86b66b8bbc376cfe7b4ded
diff --git a/libartbase/base/bit_table.h b/libartbase/base/bit_table.h
index 8cfd044..bf3d3b0 100644
--- a/libartbase/base/bit_table.h
+++ b/libartbase/base/bit_table.h
@@ -194,7 +194,7 @@
if (count <= size() - index &&
std::equal(values,
values + count,
- &rows_[index],
+ rows_.begin() + index,
[](const T& lhs, const T& rhs) {
return memcmp(&lhs, &rhs, sizeof(T)) == 0;
})) {