From 1ab4adb1d3355e8bbd14fb90d320efa8606a7764 Mon Sep 17 00:00:00 2001 From: Ewan Crawford Date: Tue, 8 Mar 2016 10:03:23 +0000 Subject: [PATCH] Use c_str() instead of GetCString() to fix build llvm-svn: 262920 --- lldb/source/Interpreter/CommandInterpreter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index 2e46687..3733ac1 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -461,7 +461,7 @@ CommandInterpreter::Initialize () AddAlias ("run", cmd_obj_sp, "--shell-expand-args true --"); #else StreamString defaultshell; - defaultshell.Printf("--shell=%s --", HostInfo::GetDefaultShell().GetPath().GetCString()); + defaultshell.Printf("--shell=%s --", HostInfo::GetDefaultShell().GetPath().c_str()); AddAlias ("r", cmd_obj_sp, defaultshell.GetData()); AddAlias ("run", cmd_obj_sp, defaultshell.GetData()); #endif -- 2.7.4