Skip to content

Commit 72670a7

Browse files
committed
llvm.coverage.FunctionRecord - fix uninitialized variable warning. NFCI.
1 parent 79818f8 commit 72670a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ struct FunctionRecord {
311311
/// Regions in the function along with their counts.
312312
std::vector<CountedRegion> CountedRegions;
313313
/// The number of times this function was executed.
314-
uint64_t ExecutionCount;
314+
uint64_t ExecutionCount = 0;
315315

316316
FunctionRecord(StringRef Name, ArrayRef<StringRef> Filenames)
317317
: Name(Name), Filenames(Filenames.begin(), Filenames.end()) {}

0 commit comments

Comments
 (0)