projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f3961e
)
Fix the build on win32
author
Chris Lattner
<sabre@nondot.org>
Wed, 26 Jul 2006 20:37:11 +0000
(20:37 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 26 Jul 2006 20:37:11 +0000
(20:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29302
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/System/Win32/Memory.inc
patch
|
blob
|
history
diff --git
a/lib/System/Win32/Memory.inc
b/lib/System/Win32/Memory.inc
index 9f5693a9aae8716ff8199d2069a318a78c8f0683..3b70cc8e4f1263a58becd3fd32d55d432adfaf2a 100644
(file)
--- a/
lib/System/Win32/Memory.inc
+++ b/
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;
}
}