diff options
| author | Dan Liew <dan@su-root.co.uk> | 2016-05-20 01:30:36 +0000 |
|---|---|---|
| committer | Dan Liew <dan@su-root.co.uk> | 2016-05-20 01:30:36 +0000 |
| commit | e6ac1fd0897faa87821cd5ba2daec4c5ea3ac30f (patch) | |
| tree | 140d748fc4980045c466a622e317b0bc91200f3c /llvm/lib/Bitcode | |
| parent | 7ec6f560403303aa7b462bcb543df346972e4a36 (diff) | |
| download | bcm5719-llvm-e6ac1fd0897faa87821cd5ba2daec4c5ea3ac30f.tar.gz bcm5719-llvm-e6ac1fd0897faa87821cd5ba2daec4c5ea3ac30f.zip | |
[LibFuzzer] Fix ``NumberOfCpuCores()`` on Mac OSX.
The ``nprocs`` command does not exist under Mac OSX so use
``sysctl`` instead on that platform.
Whilst I'm here
* Use ``pclose()`` instead of ``fclose()`` which the ``popen()``
documentation says should be used.
* Check for errors that were previously unhandled.
Differential Revision: http://reviews.llvm.org/D20409
llvm-svn: 270172
Diffstat (limited to 'llvm/lib/Bitcode')
0 files changed, 0 insertions, 0 deletions

