diff --git a/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h b/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h index 0dd0c7ec8065..f272e8c03903 100644 --- a/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h +++ b/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h @@ -311,7 +311,7 @@ struct FunctionRecord { /// Regions in the function along with their counts. std::vector CountedRegions; /// The number of times this function was executed. - uint64_t ExecutionCount; + uint64_t ExecutionCount = 0; FunctionRecord(StringRef Name, ArrayRef Filenames) : Name(Name), Filenames(Filenames.begin(), Filenames.end()) {}