summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit806d507b0f2806a64483a722ecf003ed9803996a (patch)
tree9ff4e45f0ebefe0088dc2abb0921400a265378f4 /llvm/lib/Support/Unix/Memory.inc
parentc30dcecb5ceb70ff87c685376cbe43020b799926 (diff)
downloadbcm5719-llvm-806d507b0f2806a64483a722ecf003ed9803996a.tar.gz
bcm5719-llvm-806d507b0f2806a64483a722ecf003ed9803996a.zip
setExecutable() should default to success if there's nothing custom for it.
llvm-svn: 127891
Diffstat (limited to 'llvm/lib/Support/Unix/Memory.inc')
-rw-r--r--llvm/lib/Support/Unix/Memory.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Unix/Memory.inc b/llvm/lib/Support/Unix/Memory.inc
index 4312d67183c..5a57a287063 100644
--- a/llvm/lib/Support/Unix/Memory.inc
+++ b/llvm/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
}
OpenPOWER on IntegriCloud