summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-07-26 20:37:11 +0000
committerChris Lattner <sabre@nondot.org>2006-07-26 20:37:11 +0000
commit963ac1486a0bd8e50ae04dc2d68b179f89f892e6 (patch)
treec4f89bd78abdbdade1799ac5d9dbf1c7b45db19f
parentda72978e1e68a86b12f81ddc574be5267eea8826 (diff)
downloadllvm-963ac1486a0bd8e50ae04dc2d68b179f89f892e6.tar.gz
Fix the build on win32
llvm-svn: 29302
-rw-r--r--llvm/lib/System/Win32/Memory.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/System/Win32/Memory.inc b/llvm/lib/System/Win32/Memory.inc
index 9f5693a9aae8..3b70cc8e4f12 100644
--- a/llvm/lib/System/Win32/Memory.inc
+++ b/llvm/lib/System/Win32/Memory.inc
@@ -47,9 +47,10 @@ MemoryBlock Memory::AllocateRWX(unsigned NumBytes,
}
bool Memory::ReleaseRWX(MemoryBlock &M, std::string *ErrMsg) {
- if (M.Address == 0 || M.Size == 0) return;
+ if (M.Address == 0 || M.Size == 0) return false;
if (!VirtualFree(M.Address, 0, MEM_RELEASE))
return GetError("Can't release RWX Memory: ", ErrMsg);
+ return false;
}
}