llvm.coverage.FunctionRecord - fix uninitialized variable warning. NFCI.

This commit is contained in:
Simon Pilgrim 2019-11-02 17:38:04 +00:00
parent 79818f8c70
commit 72670a7975
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,7 @@ struct FunctionRecord {
/// Regions in the function along with their counts.
std::vector<CountedRegion> CountedRegions;
/// The number of times this function was executed.
uint64_t ExecutionCount;
uint64_t ExecutionCount = 0;
FunctionRecord(StringRef Name, ArrayRef<StringRef> Filenames)
: Name(Name), Filenames(Filenames.begin(), Filenames.end()) {}