summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ConnectionSharedMemory.cpp
diff options
context:
space:
mode:
authorTodd Fiala <todd.fiala@gmail.com>2014-06-02 17:30:22 +0000
committerTodd Fiala <todd.fiala@gmail.com>2014-06-02 17:30:22 +0000
commit4dc625281d0269513226cc2282f95f16a9b65e71 (patch)
tree8d65af268dfca845afa26bc25dc4061f82ee6cb2 /lldb/source/Core/ConnectionSharedMemory.cpp
parenta84189a2e4f9401501275f07c0f52e61df3e619c (diff)
downloadbcm5719-llvm-4dc625281d0269513226cc2282f95f16a9b65e71.tar.gz
bcm5719-llvm-4dc625281d0269513226cc2282f95f16a9b65e71.zip
Fix most of the remaining Windows build warnings.
See http://reviews.llvm.org/D3944 for more details. Change by Zachary Turner. llvm-svn: 210035
Diffstat (limited to 'lldb/source/Core/ConnectionSharedMemory.cpp')
-rw-r--r--lldb/source/Core/ConnectionSharedMemory.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/lldb/source/Core/ConnectionSharedMemory.cpp b/lldb/source/Core/ConnectionSharedMemory.cpp
index cd708c4868c..5db3d687cdb 100644
--- a/lldb/source/Core/ConnectionSharedMemory.cpp
+++ b/lldb/source/Core/ConnectionSharedMemory.cpp
@@ -24,6 +24,7 @@
// C++ Includes
// Other libraries and framework includes
// Project includes
+#include "llvm/Support/MathExtras.h"
#include "lldb/lldb-private-log.h"
#include "lldb/Core/Communication.h"
#include "lldb/Core/Log.h"
@@ -125,8 +126,15 @@ ConnectionSharedMemory::Open (bool create, const char *name, size_t size, Error
#ifdef _WIN32
HANDLE handle;
- if (create)
- handle = CreateFileMapping(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, (DWORD)(size >> 32), (DWORD)(size), name);
+ if (create) {
+ handle = CreateFileMapping(
+ INVALID_HANDLE_VALUE,
+ NULL,
+ PAGE_READWRITE,
+ llvm::Hi_32(size),
+ llvm::Lo_32(size),
+ name);
+ }
else
handle = OpenFileMapping(FILE_MAP_ALL_ACCESS, FALSE, name);
OpenPOWER on IntegriCloud