Skip to content

Commit ffd870c

Browse files
committed
Add primitive type default initializations.
1 parent 3832bf9 commit ffd870c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/include/llvm/Object/ELFTypes.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,12 +1013,12 @@ struct PGOAnalysisMap {
10131013
/// probability associated with it.
10141014
struct SuccessorEntry {
10151015
/// Unique ID of this successor basic block.
1016-
uint32_t ID;
1016+
uint32_t ID = 0;
10171017
/// Branch Probability of the edge to this successor taken from MBPI.
10181018
BranchProbability Prob;
10191019
/// Raw edge count from the post link profile (e.g., from bolt or
10201020
/// propeller).
1021-
uint64_t PostLinkFreq;
1021+
uint64_t PostLinkFreq = 0;
10221022

10231023
bool operator==(const SuccessorEntry &Other) const {
10241024
return std::tie(ID, Prob, PostLinkFreq) ==

0 commit comments

Comments
 (0)