diff options
author | Greg Clayton <gclayton@apple.com> | 2015-04-09 00:12:33 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2015-04-09 00:12:33 +0000 |
commit | 7965e5457ab99ee46a6bac9429fc2b28554e469f (patch) | |
tree | 669e3c2a4ba7e1f52f039ec17b26f7217df45a7e /lldb/source/Host/common/File.cpp | |
parent | 29aac9a56c58ea01978b3e1e7a18533cd8eabbc0 (diff) | |
download | bcm5719-llvm-7965e5457ab99ee46a6bac9429fc2b28554e469f.tar.gz bcm5719-llvm-7965e5457ab99ee46a6bac9429fc2b28554e469f.zip |
Missed moving a variable during my previous revision 234455.
llvm-svn: 234456
Diffstat (limited to 'lldb/source/Host/common/File.cpp')
-rw-r--r-- | lldb/source/Host/common/File.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Host/common/File.cpp b/lldb/source/Host/common/File.cpp index 94b0529b14a..4361eae78c8 100644 --- a/lldb/source/Host/common/File.cpp +++ b/lldb/source/Host/common/File.cpp @@ -887,6 +887,8 @@ File::Read (size_t &num_bytes, off_t &offset, bool null_terminate, DataBufferSP Error File::Write (const void *buf, size_t &num_bytes, off_t &offset) { + Error error; + #if defined (MAX_WRITE_SIZE) if (num_bytes > MAX_WRITE_SIZE) { @@ -919,7 +921,6 @@ File::Write (const void *buf, size_t &num_bytes, off_t &offset) } #endif - Error error; int fd = GetDescriptor(); if (fd != kInvalidDescriptor) { |