nullptr initialize variables, spotted on msan bots.

This commit is contained in:
Eric Christopher 2021-09-10 18:10:16 -07:00
parent f7062f6dfb
commit 2d26a72f82
1 changed files with 2 additions and 2 deletions

View File

@ -424,8 +424,8 @@ static bool checkIVUsers(FlattenInfo &FI) {
LLVM_DEBUG(dbgs() << "Found use of inner induction variable: "; U->dump());
Value *MatchedMul;
Value *MatchedItCount;
Value *MatchedMul = nullptr;
Value *MatchedItCount = nullptr;
bool IsAdd = match(U, m_c_Add(m_Specific(FI.InnerInductionPHI),
m_Value(MatchedMul))) &&
match(MatchedMul, m_c_Mul(m_Specific(FI.OuterInductionPHI),