Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1072)

Unified Diff: syzygy/agent/asan/runtime.cc

Issue 2363733003: Make syzyasan_rtl compile in 64 bit (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: syzygy/agent/asan/runtime.cc
diff --git a/syzygy/agent/asan/runtime.cc b/syzygy/agent/asan/runtime.cc
index 9eab017fa7918ec113050dd87a9f73d2b3205790..65e363df2806febf125a5ab16a1a1d0ce5fd6625 100644
--- a/syzygy/agent/asan/runtime.cc
+++ b/syzygy/agent/asan/runtime.cc
@@ -1072,7 +1072,7 @@ void AsanRuntime::AddThreadId(uint32_t thread_id) {
bool AsanRuntime::ThreadIdIsValid(uint32_t thread_id) {
base::AutoLock lock(thread_ids_lock_);
- return thread_ids_.count(thread_id) > 0;
+ return thread_ids_.find(thread_id) != thread_ids_.end();
}
bool AsanRuntime::HeapIdIsValid(HeapManagerInterface::HeapId heap_id) {

Powered by Google App Engine
This is Rietveld 408576698