[llvm] 2d26a72 - nullptr initialize variables, spotted on msan bots.
Eric Christopher via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 10 18:11:09 PDT 2021
Author: Eric Christopher
Date: 2021-09-10T18:10:53-07:00
New Revision: 2d26a72f825c7d8b50da49dda917e85897c8a746
URL: https://github.com/llvm/llvm-project/commit/2d26a72f825c7d8b50da49dda917e85897c8a746
DIFF: https://github.com/llvm/llvm-project/commit/2d26a72f825c7d8b50da49dda917e85897c8a746.diff
LOG: nullptr initialize variables, spotted on msan bots.
Added:
Modified:
llvm/lib/Transforms/Scalar/LoopFlatten.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/LoopFlatten.cpp b/llvm/lib/Transforms/Scalar/LoopFlatten.cpp
index 83d7899d75bc9..931bcc2aada66 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),
More information about the llvm-commits
mailing list