[Lldb-commits] [lldb] r238767 - Fix TestPaths.
Chaoren Lin
chaorenl at google.com
Mon Jun 1 11:04:10 PDT 2015
Author: chaoren
Date: Mon Jun 1 13:04:10 2015
New Revision: 238767
URL: http://llvm.org/viewvc/llvm-project?rev=238767&view=rev
Log:
Fix TestPaths.
Reviewers: vharron, clayborg
Reviewed By: clayborg
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D10164
Modified:
lldb/trunk/source/Host/common/HostInfoBase.cpp
Modified: lldb/trunk/source/Host/common/HostInfoBase.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/HostInfoBase.cpp?rev=238767&r1=238766&r2=238767&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/HostInfoBase.cpp (original)
+++ lldb/trunk/source/Host/common/HostInfoBase.cpp Mon Jun 1 13:04:10 2015
@@ -334,7 +334,7 @@ HostInfoBase::ComputeProcessTempFileDire
// Make an atexit handler to clean up the process specify LLDB temp dir
// and all of its contents.
::atexit(CleanupProcessSpecificLLDBTempDir);
- file_spec = temp_file_spec;
+ file_spec.GetDirectory().SetCString(temp_file_spec.GetCString());
return true;
}
@@ -370,7 +370,7 @@ HostInfoBase::ComputeGlobalTempFileDirec
if (!FileSystem::MakeDirectory(temp_file_spec, eFilePermissionsDirectoryDefault).Success())
return false;
- file_spec = temp_file_spec;
+ file_spec.GetDirectory().SetCString(temp_file_spec.GetCString());
return true;
}
More information about the lldb-commits
mailing list