mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-15 16:09:02 +00:00
Actually _PASS IN_ NO_RESERVE if we have it.
Thanks to Brian for fixing this obvious oops git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8899 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6873450ed5
commit
011efae2f0
@ -71,7 +71,7 @@ static void *getMemory(unsigned NumBytes) {
|
||||
#endif
|
||||
|
||||
void *pa = mmap(0, pageSize*NumPages, PROT_READ|PROT_WRITE|PROT_EXEC,
|
||||
MAP_PRIVATE|MAP_ANONYMOUS, fd, 0);
|
||||
mmapFlags, fd, 0);
|
||||
if (pa == MAP_FAILED) {
|
||||
perror("mmap");
|
||||
abort();
|
||||
|
Loading…
Reference in New Issue
Block a user