aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/CAS/OnDiskCommonUtils.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/CAS/OnDiskCommonUtils.h')
-rw-r--r--llvm/unittests/CAS/OnDiskCommonUtils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/CAS/OnDiskCommonUtils.h b/llvm/unittests/CAS/OnDiskCommonUtils.h
index 57c8c22..89f93e0 100644
--- a/llvm/unittests/CAS/OnDiskCommonUtils.h
+++ b/llvm/unittests/CAS/OnDiskCommonUtils.h
@@ -45,7 +45,7 @@ inline HashType digest(StringRef Data) {
}
inline ValueType valueFromString(StringRef S) {
- ValueType Val;
+ ValueType Val = {};
llvm::copy(S.substr(0, sizeof(Val)), Val.data());
return Val;
}