From: Eric Christopher Date: Sat, 11 Sep 2021 01:10:16 +0000 (-0700) Subject: nullptr initialize variables, spotted on msan bots. X-Git-Tag: upstream/15.0.7~31703 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d26a72f825c7d8b50da49dda917e85897c8a746;p=platform%2Fupstream%2Fllvm.git nullptr initialize variables, spotted on msan bots. --- diff --git a/llvm/lib/Transforms/Scalar/LoopFlatten.cpp b/llvm/lib/Transforms/Scalar/LoopFlatten.cpp index 83d7899..931bcc2 100644 --- a/llvm/lib/Transforms/Scalar/LoopFlatten.cpp +++ b/llvm/lib/Transforms/Scalar/LoopFlatten.cpp @@ -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),