[llvm-commits] CVS: llvm/lib/System/Win32/Memory.inc
Chris Lattner
lattner at cs.uiuc.edu
Wed Jul 26 13:37:25 PDT 2006
Changes in directory llvm/lib/System/Win32:
Memory.inc updated: 1.7 -> 1.8
---
Log message:
Fix the build on win32
---
Diffs of the changes: (+2 -1)
Memory.inc | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/lib/System/Win32/Memory.inc
diff -u llvm/lib/System/Win32/Memory.inc:1.7 llvm/lib/System/Win32/Memory.inc:1.8
--- llvm/lib/System/Win32/Memory.inc:1.7 Fri Jul 7 12:32:37 2006
+++ llvm/lib/System/Win32/Memory.inc Wed Jul 26 15:37:11 2006
@@ -47,9 +47,10 @@
}
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;
}
}
More information about the llvm-commits
mailing list