Don't call computeHostNumPhysicalCores when LLVM_ENABLE_THREADS is off
authorAmy Huang <akhuang@google.com>
Fri, 14 Feb 2020 22:52:25 +0000 (14:52 -0800)
committerAmy Huang <akhuang@google.com>
Fri, 14 Feb 2020 23:09:27 +0000 (15:09 -0800)
commit01b02a73de78146c2072e0b5399d2a40c01eca08
tree37e1e305b8f4d40ad0646061b5d5448ba213a729
parentb7be6b480b8681902e4b7aa4eb479ccedbde1990
Don't call computeHostNumPhysicalCores when LLVM_ENABLE_THREADS is off

Summary:
Fix change from 8404aeb56a73 to avoid calling
computeHostNumPhysicalCores if LLVM_ENABLE_THREADS is off.

Reviewers: rnk, aganea

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D74654
llvm/lib/Support/Host.cpp