commit | 011efae2f0ff141064e305c55940c9cbec5396c7 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Mon Oct 06 19:07:41 2003 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Mon Oct 06 19:07:41 2003 +0000 |
tree | b2971b8144fbaccc689fde1475b817fea3a55cbc | |
parent | 6873450ed50b37d131f901058688445d0081829c [diff] [blame] |
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
diff --git a/lib/ExecutionEngine/JIT/JITEmitter.cpp b/lib/ExecutionEngine/JIT/JITEmitter.cpp index 637b105..a7ab035 100644 --- a/lib/ExecutionEngine/JIT/JITEmitter.cpp +++ b/lib/ExecutionEngine/JIT/JITEmitter.cpp
@@ -71,7 +71,7 @@ #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();