Fix build - GetRemoteWorkingDirectory returns FileSpec instead of ConstString.
authorOleksiy Vyalov <ovyalov@google.com>
Fri, 29 May 2015 20:32:26 +0000 (20:32 +0000)
committerOleksiy Vyalov <ovyalov@google.com>
Fri, 29 May 2015 20:32:26 +0000 (20:32 +0000)
llvm-svn: 238610

lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp

index 34df5a9..898d13e 100644 (file)
@@ -219,7 +219,7 @@ PlatformAndroid::GetFile (const FileSpec& source,
     const auto source_path = source_spec.GetPath (false);
     if (llvm::sys::path::is_relative (source_path.c_str ()))
     {
-        source_spec.SetFile (GetRemoteWorkingDirectory ().AsCString (), false, FileSpec::ePathSyntaxPosix);
+        source_spec = GetRemoteWorkingDirectory ();
         source_spec.AppendPathComponent (source_path.c_str ());
     }