diff options
author | Enrico Granata <egranata@apple.com> | 2016-02-06 01:36:07 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2016-02-06 01:36:07 +0000 |
commit | 41571781c01723a64a0d2fa3e82b1b7f3f2c28dc (patch) | |
tree | 77748f328d2f3aa97ff5dac3d46cab10769f59b2 /lldb/source/Commands/CommandObjectMultiword.cpp | |
parent | 23919372d1db1dba80e8c4697e0a0922e830fc3a (diff) | |
download | bcm5719-llvm-41571781c01723a64a0d2fa3e82b1b7f3f2c28dc.tar.gz bcm5719-llvm-41571781c01723a64a0d2fa3e82b1b7f3f2c28dc.zip |
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
Diffstat (limited to 'lldb/source/Commands/CommandObjectMultiword.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectMultiword.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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; |