From d897599e5ba43c644c685c916f55e70a56f420ff Mon Sep 17 00:00:00 2001 From: Galina Kistanova Date: Thu, 12 Jul 2012 20:45:36 +0000 Subject: Fixed few warnings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160142 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Unix/Path.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/Support/Unix/Path.inc') 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(BasePtr); + ::munmap(const_cast(Addr), FileSize); } } // end llvm namespace -- cgit v1.2.3-18-g5258