From 806d507b0f2806a64483a722ecf003ed9803996a Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Fri, 18 Mar 2011 18:51:03 +0000 Subject: [PATCH] setExecutable() should default to success if there's nothing custom for it. llvm-svn: 127891 --- llvm/lib/Support/Unix/Memory.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Support/Unix/Memory.inc b/llvm/lib/Support/Unix/Memory.inc index 4312d67183c4..5a57a2870636 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 }