summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/common/File.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2015-04-09 00:12:33 +0000
committerGreg Clayton <gclayton@apple.com>2015-04-09 00:12:33 +0000
commit7965e5457ab99ee46a6bac9429fc2b28554e469f (patch)
tree669e3c2a4ba7e1f52f039ec17b26f7217df45a7e /lldb/source/Host/common/File.cpp
parent29aac9a56c58ea01978b3e1e7a18533cd8eabbc0 (diff)
downloadbcm5719-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.cpp3
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)
{
OpenPOWER on IntegriCloud