Skip to content

Commit c447e5d

Browse files
committed
BranchProbabilityInfo - fix uninitialized variable warning. NFCI.
1 parent fd02a46 commit c447e5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Analysis/BranchProbabilityInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ class BranchProbabilityInfo {
179179
DenseMap<Edge, BranchProbability> Probs;
180180

181181
/// Track the last function we run over for printing.
182-
const Function *LastF;
182+
const Function *LastF = nullptr;
183183

184184
/// Track the set of blocks directly succeeded by a returning block.
185185
SmallPtrSet<const BasicBlock *, 16> PostDominatedByUnreachable;

0 commit comments

Comments
 (0)