diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:41:05 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:41:05 +0000 | 
| commit | 01095a5d43bbfde13731688ddcf6048ebb8b7721 (patch) | |
| tree | 4def12e759965de927d963ac65840d663ef9d1ea /lib/Support/Unix/Memory.inc | |
| parent | f0f4822ed4b66e3579e92a89f368f8fb860e218e (diff) | |
Notes
Diffstat (limited to 'lib/Support/Unix/Memory.inc')
| -rw-r--r-- | lib/Support/Unix/Memory.inc | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/Unix/Memory.inc b/lib/Support/Unix/Memory.inc index d70319168b84..f3463e581735 100644 --- a/lib/Support/Unix/Memory.inc +++ b/lib/Support/Unix/Memory.inc @@ -73,7 +73,7 @@ int getPosixProtectionFlags(unsigned Flags) {    return PROT_NONE;  } -} // namespace +} // anonymous namespace  namespace llvm {  namespace sys { @@ -265,7 +265,7 @@ bool Memory::setWritable (MemoryBlock &M, std::string *ErrMsg) {  }  bool Memory::setExecutable (MemoryBlock &M, std::string *ErrMsg) { -  if (M.Address == 0 || M.Size == 0) return false; +  if (M.Address == nullptr || M.Size == 0) return false;    Memory::InvalidateInstructionCache(M.Address, M.Size);  #if defined(__APPLE__) && (defined(__arm__) || defined(__arm64__))    kern_return_t kr = vm_protect(mach_task_self(), (vm_address_t)M.Address,  | 
