diff options
| author | Chaoren Lin <chaorenl@google.com> | 2015-06-01 18:04:10 +0000 |
|---|---|---|
| committer | Chaoren Lin <chaorenl@google.com> | 2015-06-01 18:04:10 +0000 |
| commit | b79863c2cc412971b9bd483b1e3c057b181b19a7 (patch) | |
| tree | 2a8c6f66adbfa11bdb9d058c1b332fcda20c6c9c /lldb/source/Host/common/HostInfoBase.cpp | |
| parent | f4d5a8ec9ee6af75a271b517b74f38b7a5c6f18a (diff) | |
| download | bcm5719-llvm-b79863c2cc412971b9bd483b1e3c057b181b19a7.tar.gz bcm5719-llvm-b79863c2cc412971b9bd483b1e3c057b181b19a7.zip | |
Fix TestPaths.
Reviewers: vharron, clayborg
Reviewed By: clayborg
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D10164
llvm-svn: 238767
Diffstat (limited to 'lldb/source/Host/common/HostInfoBase.cpp')
| -rw-r--r-- | lldb/source/Host/common/HostInfoBase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Host/common/HostInfoBase.cpp b/lldb/source/Host/common/HostInfoBase.cpp index cd4815a767e..e969e33190e 100644 --- a/lldb/source/Host/common/HostInfoBase.cpp +++ b/lldb/source/Host/common/HostInfoBase.cpp @@ -334,7 +334,7 @@ HostInfoBase::ComputeProcessTempFileDirectory(FileSpec &file_spec) // 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::ComputeGlobalTempFileDirectory(FileSpec &file_spec) 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; } |

