Skip to content

Commit

Permalink
[Support] ThreadPool tests: silence warning unused variable 'It'
Browse files Browse the repository at this point in the history
  • Loading branch information
aganea committed Apr 17, 2021
1 parent 141945f commit 7b75a3a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions llvm/unittests/Support/ThreadPool.cpp
Expand Up @@ -246,8 +246,10 @@ TEST_F(ThreadPoolTest, AffinityMask) {
// Ensure the threads only ran on CPUs 0-3.
// NOTE: Don't use ASSERT* here because this runs in a subprocess,
// and will show up as un-executed in the parent.
for (auto &It : ThreadsUsed)
assert(It.getData().front() < 16UL);
assert(llvm::all_of(ThreadsUsed,
[](auto &T) { return T.getData().front() < 16UL; }) &&
"Threads ran on more CPUs than expected! The affinity mask does not "
"seem to work.");
return;
}
std::string Executable =
Expand Down

0 comments on commit 7b75a3a

Please sign in to comment.