diff --git a/llvm/lib/System/AIX/Memory.cpp b/llvm/lib/System/AIX/Memory.cpp index b4e9a9f5b481..6ba57de40a66 100644 --- a/llvm/lib/System/AIX/Memory.cpp +++ b/llvm/lib/System/AIX/Memory.cpp @@ -45,7 +45,7 @@ void* Memory::AllocateRWX(Memory& M, unsigned NumBytes) { void Memory::ReleaseRWX(Memory& M) { if (M.Address == 0 || M.AllocSize == 0) return; if (0 != munmap(M.Address, M.AllocSize)) { - throw std::string("Can't release RWX Memory: ") + sterror(errno); + throw std::string("Can't release RWX Memory: ") + strerror(errno); } } diff --git a/llvm/lib/System/Cygwin/Memory.cpp b/llvm/lib/System/Cygwin/Memory.cpp index 4c0123b7f928..58e660c20837 100644 --- a/llvm/lib/System/Cygwin/Memory.cpp +++ b/llvm/lib/System/Cygwin/Memory.cpp @@ -45,7 +45,7 @@ void* Memory::AllocateRWX(Memory& M, unsigned NumBytes) { void Memory::ReleaseRWX(Memory& M) { if (M.Address == 0 || M.AllocSize == 0) return; if (0 != munmap(M.Address, M.AllocSize)) { - throw std::string("Can't release RWX Memory: ") + sterror(errno); + throw std::string("Can't release RWX Memory: ") + strerror(errno); } } diff --git a/llvm/lib/System/FreeBSD/Memory.cpp b/llvm/lib/System/FreeBSD/Memory.cpp index 16fa849c55c5..eeb22e910bfc 100644 --- a/llvm/lib/System/FreeBSD/Memory.cpp +++ b/llvm/lib/System/FreeBSD/Memory.cpp @@ -44,7 +44,7 @@ void* Memory::AllocateRWX(Memory& M, unsigned NumBytes) { void Memory::ReleaseRWX(Memory& M) { if (M.Address == 0 || M.AllocSize == 0) return; if (0 != munmap(M.Address, M.AllocSize)) { - throw std::string("Can't release RWX Memory: ") + sterror(errno); + throw std::string("Can't release RWX Memory: ") + strerror(errno); } } diff --git a/llvm/lib/System/Interix/Memory.cpp b/llvm/lib/System/Interix/Memory.cpp index b0791ef7d146..b79f8b62680c 100644 --- a/llvm/lib/System/Interix/Memory.cpp +++ b/llvm/lib/System/Interix/Memory.cpp @@ -44,7 +44,7 @@ void* Memory::AllocateRWX(Memory& M, unsigned NumBytes) { void Memory::ReleaseRWX(Memory& M) { if (M.Address == 0 || M.AllocSize == 0) return; if (0 != munmap(M.Address, M.AllocSize)) { - throw std::string("Can't release RWX Memory: ") + sterror(errno); + throw std::string("Can't release RWX Memory: ") + strerror(errno); } } diff --git a/llvm/lib/System/SunOS/Memory.cpp b/llvm/lib/System/SunOS/Memory.cpp index dd15f13495b5..d6d871aa715f 100644 --- a/llvm/lib/System/SunOS/Memory.cpp +++ b/llvm/lib/System/SunOS/Memory.cpp @@ -45,7 +45,7 @@ void* Memory::AllocateRWX(Memory& M, unsigned NumBytes) { void Memory::ReleaseRWX(Memory& M) { if (M.Address == 0 || M.AllocSize == 0) return; if (0 != munmap(M.Address, M.AllocSize)) { - throw std::string("Can't release RWX Memory: ") + sterror(errno); + throw std::string("Can't release RWX Memory: ") + strerror(errno); } }