projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8f1227
)
Fix "use of" uninitialized memory in benchmark.
author
Eric Fiselier
<eric@efcs.ca>
Tue, 13 Nov 2018 23:00:55 +0000
(23:00 +0000)
committer
Eric Fiselier
<eric@efcs.ca>
Tue, 13 Nov 2018 23:00:55 +0000
(23:00 +0000)
An argument to DoNotOptimize was not fully initialized, which caused
msan to complain.
llvm-svn: 346808
libcxx/benchmarks/function.bench.cpp
patch
|
blob
|
history
diff --git
a/libcxx/benchmarks/function.bench.cpp
b/libcxx/benchmarks/function.bench.cpp
index
484d197
..
4f0e1fd
100644
(file)
--- 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; }