[Lldb-commits] [lldb] r280328 - There exists at least one compiler on one platform that doesn't know how to assert on a std::shared_ptr<>
Enrico Granata via lldb-commits
lldb-commits at lists.llvm.org
Wed Aug 31 17:32:53 PDT 2016
Author: enrico
Date: Wed Aug 31 19:32:53 2016
New Revision: 280328
URL: http://llvm.org/viewvc/llvm-project?rev=280328&view=rev
Log:
There exists at least one compiler on one platform that doesn't know how to assert on a std::shared_ptr<>
Appease it by being very very very explicit about what I mean
Modified:
lldb/trunk/source/Commands/CommandObjectMemory.cpp
Modified: lldb/trunk/source/Commands/CommandObjectMemory.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectMemory.cpp?rev=280328&r1=280327&r2=280328&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectMemory.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectMemory.cpp Wed Aug 31 19:32:53 2016
@@ -1097,7 +1097,7 @@ protected:
m_base_addr(base),
m_is_valid(true)
{
- lldbassert(process_sp);
+ lldbassert(process_sp.get() != nullptr);
}
bool
More information about the lldb-commits
mailing list