From 41571781c01723a64a0d2fa3e82b1b7f3f2c28dc Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Sat, 6 Feb 2016 01:36:07 +0000 Subject: Per Jim's suggestion, move checks that we're not mixing and matching Debuggers and Commands deeper in the bowels of LLDB NFC llvm-svn: 259972 --- lldb/source/Commands/CommandObjectMultiword.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lldb/source/Commands/CommandObjectMultiword.cpp') diff --git a/lldb/source/Commands/CommandObjectMultiword.cpp b/lldb/source/Commands/CommandObjectMultiword.cpp index 206f3b6fb7d..ed70551ef37 100644 --- a/lldb/source/Commands/CommandObjectMultiword.cpp +++ b/lldb/source/Commands/CommandObjectMultiword.cpp @@ -92,6 +92,9 @@ CommandObjectMultiword::LoadSubCommand const CommandObjectSP& cmd_obj ) { + if (cmd_obj.get()) + assert((&GetCommandInterpreter() == &cmd_obj->GetCommandInterpreter()) && "tried to add a CommandObject from a different interpreter"); + CommandMap::iterator pos; bool success = true; -- cgit v1.2.3