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:
Chris Lattner 2003-10-06 19:07:41 +00:00
parent 6873450ed5
commit 011efae2f0

View File

@ -71,7 +71,7 @@ static void *getMemory(unsigned NumBytes) {
#endif #endif
void *pa = mmap(0, pageSize*NumPages, PROT_READ|PROT_WRITE|PROT_EXEC, 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) { if (pa == MAP_FAILED) {
perror("mmap"); perror("mmap");
abort(); abort();