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 | d897599e5ba43c644c685c916f55e70a56f420ff (patch) | |
tree | a2a95bda9e46885727359af723d19d3cfb06e943 /lib/Support/Unix/Path.inc | |
parent | feae00a68e819e661ff6fddd15be703670247c10 (diff) |
Fixed few warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160142 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Unix/Path.inc')
-rw-r--r-- | lib/Support/Unix/Path.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Support/Unix/Path.inc b/lib/Support/Unix/Path.inc index ddc1e0f9ce..b41390adef 100644 --- a/lib/Support/Unix/Path.inc +++ b/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 |