summaryrefslogtreecommitdiffstats
path: root/libcxx/benchmarks/function.bench.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2018-11-13 23:00:55 +0000
committerEric Fiselier <eric@efcs.ca>2018-11-13 23:00:55 +0000
commit9039b6012e2c18416aad0edae548c28159e12f8a (patch)
tree917f3950857840b8bc56c551dea8dc9e7b7b6784 /libcxx/benchmarks/function.bench.cpp
parentf8f12272e80fd37f6ee48b7ffef9d7296dcd2e33 (diff)
Fix "use of" uninitialized memory in benchmark.
An argument to DoNotOptimize was not fully initialized, which caused msan to complain. llvm-svn: 346808
Diffstat (limited to 'libcxx/benchmarks/function.bench.cpp')
-rw-r--r--libcxx/benchmarks/function.bench.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/benchmarks/function.bench.cpp b/libcxx/benchmarks/function.bench.cpp
index 484d1973fd5b..4f0e1fd80fa3 100644
--- a/libcxx/benchmarks/function.bench.cpp
+++ b/libcxx/benchmarks/function.bench.cpp
@@ -48,7 +48,7 @@ struct AllOpacity : EnumValuesAsTuple<AllOpacity, Opacity, 2> {
struct S {
int function() const { return 0; }
- int field;
+ int field = 0;
};
int FunctionWithS(const S*) { return 0; }