From 2d26a72f825c7d8b50da49dda917e85897c8a746 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Fri, 10 Sep 2021 18:10:16 -0700 Subject: [PATCH] nullptr initialize variables, spotted on msan bots. --- llvm/lib/Transforms/Scalar/LoopFlatten.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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), -- 2.7.4