From 658ed010a6fbd0ecb1a0fd88110f2c36782ddc39 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Tue, 6 Jan 2015 19:23:25 +0000 Subject: [PATCH] Appease MSAN buildbots. This is just a compile time test, but we have MSAN buildbots that will fail since `exp` was uninitialized. llvm-svn: 225286 --- libcxx/test/atomics/atomics.general/replace_failure_order.pass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcxx/test/atomics/atomics.general/replace_failure_order.pass.cpp b/libcxx/test/atomics/atomics.general/replace_failure_order.pass.cpp index 0b37c9d..09d0b87 100644 --- a/libcxx/test/atomics/atomics.general/replace_failure_order.pass.cpp +++ b/libcxx/test/atomics/atomics.general/replace_failure_order.pass.cpp @@ -25,7 +25,7 @@ int main() { std::atomic i; volatile std::atomic v; - int exp; + int exp = 0; i.compare_exchange_weak(exp, 0, std::memory_order_acq_rel); i.compare_exchange_weak(exp, 0, std::memory_order_release); -- 2.7.4