diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-03-18 18:51:03 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-03-18 18:51:03 +0000 |
commit | 806d507b0f2806a64483a722ecf003ed9803996a (patch) | |
tree | 9ff4e45f0ebefe0088dc2abb0921400a265378f4 /llvm/lib/Support/Unix/Memory.inc | |
parent | c30dcecb5ceb70ff87c685376cbe43020b799926 (diff) | |
download | bcm5719-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.inc | 2 |
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 } |