diff options
author | Galina Kistanova <gkistanova@gmail.com> | 2012-07-12 20:45:36 +0000 |
---|---|---|
committer | Galina Kistanova <gkistanova@gmail.com> | 2012-07-12 20:45:36 +0000 |
commit | 7da6578291c78aa438186457215c6727a4fa6e5d (patch) | |
tree | 4fce8e6ddd1450bd059c79f2543fbd7489734b7c /llvm/lib/Support/Unix | |
parent | 27e02d07fd54ddcbeeb7635fdfb1d67cce574e75 (diff) | |
download | bcm5719-llvm-7da6578291c78aa438186457215c6727a4fa6e5d.tar.gz bcm5719-llvm-7da6578291c78aa438186457215c6727a4fa6e5d.zip |
Fixed few warnings.
llvm-svn: 160142
Diffstat (limited to 'llvm/lib/Support/Unix')
-rw-r--r-- | llvm/lib/Support/Unix/Path.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc index ddc1e0f9cec..b41390adefd 100644 --- a/llvm/lib/Support/Unix/Path.inc +++ b/llvm/lib/Support/Unix/Path.inc @@ -884,7 +884,8 @@ const char *Path::MapInFilePages(int FD, size_t FileSize, off_t Offset) { } void Path::UnMapFilePages(const char *BasePtr, size_t FileSize) { - ::munmap((void*)BasePtr, FileSize); + const void *Addr = static_cast<const void *>(BasePtr); + ::munmap(const_cast<void *>(Addr), FileSize); } } // end llvm namespace |