From 34aa86bc395cb40b9ce0ee2b11a80daba06cfa84 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Tue, 13 Nov 2018 23:00:55 +0000 Subject: [PATCH] Fix "use of" uninitialized memory in benchmark. An argument to DoNotOptimize was not fully initialized, which caused msan to complain. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@346808 91177308-0d34-0410-b5e6-96231b3b80d8 --- benchmarks/function.bench.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmarks/function.bench.cpp b/benchmarks/function.bench.cpp index 484d1973f..4f0e1fd80 100644 --- a/benchmarks/function.bench.cpp +++ b/benchmarks/function.bench.cpp @@ -48,7 +48,7 @@ struct AllOpacity : EnumValuesAsTuple { struct S { int function() const { return 0; } - int field; + int field = 0; }; int FunctionWithS(const S*) { return 0; }