diff options
author | Adrian Prantl <aprantl@apple.com> | 2019-03-06 01:07:45 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2019-03-06 01:07:45 +0000 |
commit | 61f1b70a78fbf4cf98b9655345f4c7419595a005 (patch) | |
tree | 9f334fadae1632998fa58d6e836e79490dd2675d /lldb/source/Interpreter/CommandObject.cpp | |
parent | 3c28c0b2aacaac53ec4bd7c88afd417a536f3b87 (diff) | |
download | llvm-61f1b70a78fbf4cf98b9655345f4c7419595a005.zip llvm-61f1b70a78fbf4cf98b9655345f4c7419595a005.tar.gz llvm-61f1b70a78fbf4cf98b9655345f4c7419595a005.tar.bz2 |
Replace debug-only assert with a plain old assert.
llvm-svn: 355466
Diffstat (limited to 'lldb/source/Interpreter/CommandObject.cpp')
-rw-r--r-- | lldb/source/Interpreter/CommandObject.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lldb/source/Interpreter/CommandObject.cpp b/lldb/source/Interpreter/CommandObject.cpp index 8255f61..4533c5f 100644 --- a/lldb/source/Interpreter/CommandObject.cpp +++ b/lldb/source/Interpreter/CommandObject.cpp @@ -136,17 +136,15 @@ bool CommandObject::ParseOptions(Args &args, CommandReturnObject &result) { } bool CommandObject::CheckRequirements(CommandReturnObject &result) { -#ifdef LLDB_CONFIGURATION_DEBUG // Nothing should be stored in m_exe_ctx between running commands as // m_exe_ctx has shared pointers to the target, process, thread and frame and // we don't want any CommandObject instances to keep any of these objects // around longer than for a single command. Every command should call - // CommandObject::Cleanup() after it has completed - assert(m_exe_ctx.GetTargetPtr() == NULL); - assert(m_exe_ctx.GetProcessPtr() == NULL); - assert(m_exe_ctx.GetThreadPtr() == NULL); - assert(m_exe_ctx.GetFramePtr() == NULL); -#endif + // CommandObject::Cleanup() after it has completed. + assert(!m_exe_ctx.GetTargetPtr()); + assert(!m_exe_ctx.GetProcessPtr()); + assert(!m_exe_ctx.GetThreadPtr()); + assert(!m_exe_ctx.GetFramePtr()); // Lock down the interpreter's execution context prior to running the command // so we guarantee the selected target, process, thread and frame can't go |