From 011efae2f0ff141064e305c55940c9cbec5396c7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 6 Oct 2003 19:07:41 +0000 Subject: [PATCH] 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 --- lib/ExecutionEngine/JIT/JITEmitter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ExecutionEngine/JIT/JITEmitter.cpp b/lib/ExecutionEngine/JIT/JITEmitter.cpp index 637b1058931..a7ab0355752 100644 --- a/lib/ExecutionEngine/JIT/JITEmitter.cpp +++ b/lib/ExecutionEngine/JIT/JITEmitter.cpp @@ -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();