Index: base/trace_event/process_memory_dump.cc |
diff --git a/base/trace_event/process_memory_dump.cc b/base/trace_event/process_memory_dump.cc |
index 56fda8088b8b56a09015dadbea06872ac791326c..902f9d417e199e2ee6e2be8ed7cbc5f472c4152d 100644 |
--- a/base/trace_event/process_memory_dump.cc |
+++ b/base/trace_event/process_memory_dump.cc |
@@ -170,8 +170,10 @@ MemoryAllocatorDump* ProcessMemoryDump::AddAllocatorDumpInternal( |
std::unique_ptr<MemoryAllocatorDump> mad) { |
auto insertion_result = allocator_dumps_.insert( |
std::make_pair(mad->absolute_name(), std::move(mad))); |
- DCHECK(insertion_result.second) << "Duplicate name: " << mad->absolute_name(); |
- return insertion_result.first->second.get(); |
+ MemoryAllocatorDump* inserted_mad = insertion_result.first->second.get(); |
+ DCHECK(insertion_result.second) << "Duplicate name: " |
+ << inserted_mad->absolute_name(); |
+ return inserted_mad; |
} |
MemoryAllocatorDump* ProcessMemoryDump::GetAllocatorDump( |