summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/LanguageRuntime.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Target/LanguageRuntime.cpp')
-rw-r--r--lldb/source/Target/LanguageRuntime.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/lldb/source/Target/LanguageRuntime.cpp b/lldb/source/Target/LanguageRuntime.cpp
index 24da18f8388..cacb491392f 100644
--- a/lldb/source/Target/LanguageRuntime.cpp
+++ b/lldb/source/Target/LanguageRuntime.cpp
@@ -287,12 +287,10 @@ void LanguageRuntime::InitializeCommands(CommandObject *parent) {
command_callback(parent->GetCommandInterpreter());
if (command) {
// the CommandObject vended by a Language plugin cannot be created once
- // and cached because
- // we may create multiple debuggers and need one instance of the command
- // each - the implementing function
- // is meant to create a new instance of the command each time it is
- // invoked
- parent->LoadSubCommand(command->GetCommandName(), command);
+ // and cached because we may create multiple debuggers and need one
+ // instance of the command each - the implementing function is meant to
+ // create a new instance of the command each time it is invoked.
+ parent->LoadSubCommand(command->GetCommandName().str().c_str(), command);
}
}
}
OpenPOWER on IntegriCloud