diff options
author | Owen Anderson <resistor@mac.com> | 2008-03-22 02:59:54 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-03-22 02:59:54 +0000 |
commit | 40b685204d4d19adbe0143b35b67a10d0e611813 (patch) | |
tree | 980432b47104be0ab660cd047d4e570c15606400 /lib/System | |
parent | 535e7969fbb146d6a5c4105b20bbcbeed11acd73 (diff) | |
download | external_llvm-40b685204d4d19adbe0143b35b67a10d0e611813.zip external_llvm-40b685204d4d19adbe0143b35b67a10d0e611813.tar.gz external_llvm-40b685204d4d19adbe0143b35b67a10d0e611813.tar.bz2 |
Add a comment, and fix a bug where AllocateRW recurred to AllocateRWX instead of itself.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48677 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System')
-rw-r--r-- | lib/System/Unix/Memory.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/System/Unix/Memory.inc b/lib/System/Unix/Memory.inc index 1649887..e0bf8d8 100644 --- a/lib/System/Unix/Memory.inc +++ b/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(); |