Index: source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.cpp =================================================================== --- source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.cpp +++ source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.cpp @@ -335,10 +335,11 @@ } static user_id_t Renumber(uint64_t id, std::map &thread_id_map) { - if (! thread_id_map.count(id)) + auto IT = thread_id_map.find(id); + if (IT == thread_id_map.end()) return 0; - return thread_id_map[id]; + return IT->second; } StructuredData::ObjectSP