[libcxx] r225286 - Appease MSAN buildbots.
Dan Albert
danalbert at google.com
Tue Jan 6 11:23:26 PST 2015
Author: danalbert
Date: Tue Jan 6 13:23:25 2015
New Revision: 225286
URL: http://llvm.org/viewvc/llvm-project?rev=225286&view=rev
Log:
Appease MSAN buildbots.
This is just a compile time test, but we have MSAN buildbots that will
fail since `exp` was uninitialized.
Modified:
libcxx/trunk/test/atomics/atomics.general/replace_failure_order.pass.cpp
Modified: libcxx/trunk/test/atomics/atomics.general/replace_failure_order.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/atomics/atomics.general/replace_failure_order.pass.cpp?rev=225286&r1=225285&r2=225286&view=diff
==============================================================================
--- libcxx/trunk/test/atomics/atomics.general/replace_failure_order.pass.cpp (original)
+++ libcxx/trunk/test/atomics/atomics.general/replace_failure_order.pass.cpp Tue Jan 6 13:23:25 2015
@@ -25,7 +25,7 @@
int main() {
std::atomic<int> i;
volatile std::atomic<int> 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);
More information about the cfe-commits
mailing list