aboutsummaryrefslogtreecommitdiff
path: root/lib/Support/Unix/Memory.inc
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-03-18 18:51:03 +0000
committerJim Grosbach <grosbach@apple.com>2011-03-18 18:51:03 +0000
commit05f98a39e51cbe24612117c69ac9fa31da0861de (patch)
tree76d4936aae88c6c400ec3c1a44fe2e0fd48e0140 /lib/Support/Unix/Memory.inc
parentc9bd496aa206746d0bc114d15781650a5b543296 (diff)
setExecutable() should default to success if there's nothing custom for it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127891 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Unix/Memory.inc')
-rw-r--r--lib/Support/Unix/Memory.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/Unix/Memory.inc b/lib/Support/Unix/Memory.inc
index 4312d67183..5a57a28706 100644
--- a/lib/Support/Unix/Memory.inc
+++ b/lib/Support/Unix/Memory.inc
@@ -124,7 +124,7 @@ bool llvm::sys::Memory::setExecutable (MemoryBlock &M, std::string *ErrMsg) {
(vm_size_t)M.Size, 0, VM_PROT_READ | VM_PROT_EXECUTE | VM_PROT_COPY);
return KERN_SUCCESS == kr;
#else
- return false;
+ return true;
#endif
}