summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Unix
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-03-22 02:59:54 +0000
committerOwen Anderson <resistor@mac.com>2008-03-22 02:59:54 +0000
commit5b993fd70d003fed37b56af006f059761b80ddef (patch)
tree9a4350162b301b3185d2787c5ecb576194383637 /llvm/lib/System/Unix
parentc1e4e3e9a1d770a8b7fd07808a9ae66ebf7da0ac (diff)
downloadbcm5719-llvm-5b993fd70d003fed37b56af006f059761b80ddef.tar.gz
bcm5719-llvm-5b993fd70d003fed37b56af006f059761b80ddef.zip
Add a comment, and fix a bug where AllocateRW recurred to AllocateRWX instead of itself.
llvm-svn: 48677
Diffstat (limited to 'llvm/lib/System/Unix')
-rw-r--r--llvm/lib/System/Unix/Memory.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/System/Unix/Memory.inc b/llvm/lib/System/Unix/Memory.inc
index 164988793f7..e0bf8d8dfdf 100644
--- a/llvm/lib/System/Unix/Memory.inc
+++ b/llvm/lib/System/Unix/Memory.inc
@@ -103,7 +103,7 @@ llvm::sys::Memory::AllocateRW(unsigned NumBytes, const MemoryBlock* NearBlock,
flags, fd, 0);
if (pa == MAP_FAILED) {
if (NearBlock) //Try again without a near hint
- return AllocateRWX(NumBytes, 0);
+ return AllocateRW(NumBytes, 0);
MakeErrMsg(ErrMsg, "Can't allocate RWX Memory");
return MemoryBlock();
OpenPOWER on IntegriCloud