Skip to content

Commit 2bff80f

Browse files
[lldb] Fix a warning
This patch fixes: lldb/source/Target/Memory.cpp:438:3: error: 'lock_guard' may not intend to support class template argument deduction [-Werror,-Wctad-maybe-unsupported]
1 parent c2bec64 commit 2bff80f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Target/Memory.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ bool AllocatedMemoryCache::DeallocateMemory(lldb::addr_t addr) {
435435
}
436436

437437
bool AllocatedMemoryCache::IsInCache(lldb::addr_t addr) const {
438-
std::lock_guard guard(m_mutex);
438+
std::lock_guard<std::recursive_mutex> guard(m_mutex);
439439

440440
return llvm::any_of(m_memory_map, [addr](const auto &block) {
441441
return block.second->Contains(addr);

0 commit comments

Comments
 (0)