Fix the build on win32

llvm-svn: 29302
This commit is contained in:
Chris Lattner 2006-07-26 20:37:11 +00:00
parent da72978e1e
commit 963ac1486a
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}
}