[llvm] f7f8c1c - [Support][unittest] Fix HostTest.NumPhysicalCores on __i386__ after D78324
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue May 19 21:51:23 PDT 2020
Author: Fangrui Song
Date: 2020-05-19T21:51:14-07:00
New Revision: f7f8c1cd9ae2ac865c9243a5e2fa847dbc6b8405
URL: https://github.com/llvm/llvm-project/commit/f7f8c1cd9ae2ac865c9243a5e2fa847dbc6b8405
DIFF: https://github.com/llvm/llvm-project/commit/f7f8c1cd9ae2ac865c9243a5e2fa847dbc6b8405.diff
LOG: [Support][unittest] Fix HostTest.NumPhysicalCores on __i386__ after D78324
Added:
Modified:
llvm/unittests/Support/Host.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/Support/Host.cpp b/llvm/unittests/Support/Host.cpp
index 4edeb40ed3ea..dd43f041d0e8 100644
--- a/llvm/unittests/Support/Host.cpp
+++ b/llvm/unittests/Support/Host.cpp
@@ -39,7 +39,7 @@ class HostTest : public testing::Test {
// physical cores, which is currently only supported/tested for
// x86_64 Linux and Darwin.
return (Host.isOSWindows() && llvm_is_multithreaded()) ||
- (Host.getArch() == Triple::x86_64 &&
+ (Host.isX86() &&
(Host.isOSDarwin() || Host.getOS() == Triple::Linux));
}
More information about the llvm-commits
mailing list