[llvm] e24384b - [Transforms] Use default member initialization in SimplifyIndvar (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 5 16:54:55 PST 2022
Author: Kazu Hirata
Date: 2022-02-05T16:29:22-08:00
New Revision: e24384b5064c7a9fd0b3802549092e31ef46b011
URL: https://github.com/llvm/llvm-project/commit/e24384b5064c7a9fd0b3802549092e31ef46b011
DIFF: https://github.com/llvm/llvm-project/commit/e24384b5064c7a9fd0b3802549092e31ef46b011.diff
LOG: [Transforms] Use default member initialization in SimplifyIndvar (NFC)
Added:
Modified:
llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp b/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
index 5b7fd4349c6c8..16d7c4d7d1e33 100644
--- a/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
@@ -58,7 +58,7 @@ namespace {
SCEVExpander &Rewriter;
SmallVectorImpl<WeakTrackingVH> &DeadInsts;
- bool Changed;
+ bool Changed = false;
public:
SimplifyIndvar(Loop *Loop, ScalarEvolution *SE, DominatorTree *DT,
@@ -66,7 +66,7 @@ namespace {
SCEVExpander &Rewriter,
SmallVectorImpl<WeakTrackingVH> &Dead)
: L(Loop), LI(LI), SE(SE), DT(DT), TTI(TTI), Rewriter(Rewriter),
- DeadInsts(Dead), Changed(false) {
+ DeadInsts(Dead) {
assert(LI && "IV simplification requires LoopInfo");
}
More information about the llvm-commits
mailing list