[Lldb-commits] [PATCH] D12396: Fix lldb build on older OSX versions after svn commit r244716

Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 26 20:43:56 PDT 2015


This revision was automatically updated to reflect the committed changes.
Closed by commit rL246138: Fix lldb build on older OSX versions after svn commit r244716 (authored by dperchik).

Changed prior to commit:
  http://reviews.llvm.org/D12396?vs=33294&id=33297#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D12396

Files:
  lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.mm

Index: lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.mm
===================================================================
--- lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.mm
+++ lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.mm
@@ -2027,6 +2027,7 @@
 {
     bool success = false;
 
+#if (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 101000)
     NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
 
     NSOperatingSystemVersion vers = [[NSProcessInfo processInfo] operatingSystemVersion];
@@ -2040,6 +2041,7 @@
     success = true;
 
     [pool drain];
+#endif
 
     return success;
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12396.33297.patch
Type: text/x-patch
Size: 630 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150827/2fb12389/attachment.bin>


More information about the lldb-commits mailing list