summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/CommandInterpreter.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2016-04-20 20:48:05 +0000
committerEnrico Granata <egranata@apple.com>2016-04-20 20:48:05 +0000
commit612917c784dc7b42b3138cae1cc496c877f5d40a (patch)
treebb17cfce3c14971cf9d9c6730817e2536218da7e /lldb/source/Interpreter/CommandInterpreter.cpp
parent32773333cbda0c2ca8a643b82fca24a13bc70233 (diff)
downloadbcm5719-llvm-612917c784dc7b42b3138cae1cc496c877f5d40a.tar.gz
bcm5719-llvm-612917c784dc7b42b3138cae1cc496c877f5d40a.zip
Fix a bug where LLDB would crash if 'apropos <anything>' was used after spawning an inferior process
llvm-svn: 266911
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r--lldb/source/Interpreter/CommandInterpreter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp
index 064a95f95b2..b28c44a5272 100644
--- a/lldb/source/Interpreter/CommandInterpreter.cpp
+++ b/lldb/source/Interpreter/CommandInterpreter.cpp
@@ -2806,7 +2806,7 @@ CommandInterpreter::FindCommandsForApropos (const char *search_word,
if (cmd_obj->IsMultiwordObject())
{
- CommandObjectMultiword *cmd_multiword = (CommandObjectMultiword*)cmd_obj;
+ CommandObjectMultiword *cmd_multiword = cmd_obj->GetAsMultiwordCommand();
FindCommandsForApropos(search_word,
commands_found,
commands_help,
OpenPOWER on IntegriCloud