[llvm] r335443 - One more build fix for non MSVC compilers.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 24 21:38:03 PDT 2018
Author: zturner
Date: Sun Jun 24 21:38:03 2018
New Revision: 335443
URL: http://llvm.org/viewvc/llvm-project?rev=335443&view=rev
Log:
One more build fix for non MSVC compilers.
Modified:
llvm/trunk/unittests/Support/TaskQueueTest.cpp
Modified: llvm/trunk/unittests/Support/TaskQueueTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/TaskQueueTest.cpp?rev=335443&r1=335442&r2=335443&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/TaskQueueTest.cpp (original)
+++ llvm/trunk/unittests/Support/TaskQueueTest.cpp Sun Jun 24 21:38:03 2018
@@ -22,9 +22,9 @@ protected:
TEST_F(TaskQueueTest, OrderedFutures) {
ThreadPool TP(1);
TaskQueue TQ(TP);
- std::atomic<int> X = 0;
- std::atomic<int> Y = 0;
- std::atomic<int> Z = 0;
+ std::atomic<int> X{ 0 };
+ std::atomic<int> Y{ 0 };
+ std::atomic<int> Z{ 0 };
std::mutex M1, M2, M3;
std::unique_lock<std::mutex> L1(M1);
@@ -66,9 +66,9 @@ TEST_F(TaskQueueTest, OrderedFutures) {
TEST_F(TaskQueueTest, UnOrderedFutures) {
ThreadPool TP(1);
TaskQueue TQ(TP);
- std::atomic<int> X = 0;
- std::atomic<int> Y = 0;
- std::atomic<int> Z = 0;
+ std::atomic<int> X{ 0 };
+ std::atomic<int> Y{ 0 };
+ std::atomic<int> Z{ 0 };
std::mutex M;
std::unique_lock<std::mutex> Lock(M);
More information about the llvm-commits
mailing list