diff options
Diffstat (limited to 'llvm/lib/Support')
| -rw-r--r-- | llvm/lib/Support/Unix/Memory.inc | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/llvm/lib/Support/Unix/Memory.inc b/llvm/lib/Support/Unix/Memory.inc index 3473b488384..d03ba6e8484 100644 --- a/llvm/lib/Support/Unix/Memory.inc +++ b/llvm/lib/Support/Unix/Memory.inc @@ -128,6 +128,7 @@ Memory::allocateMappedMemory(size_t NumBytes,    MemoryBlock Result;    Result.Address = Addr;    Result.Size = NumBytes; +  Result.Flags = PFlags;    // Rely on protectMappedMemory to invalidate instruction cache.    if (PFlags & MF_EXEC) { | 

