diff options
Diffstat (limited to 'llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp b/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp index 06f564b4034..4024c3fbd7f 100644 --- a/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp +++ b/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp @@ -115,11 +115,11 @@ class InductiveRangeCheck { static StringRef rangeCheckKindToStr(RangeCheckKind); - const SCEV *Offset; - const SCEV *Scale; - Value *Length; - Use *CheckUse; - RangeCheckKind Kind; + const SCEV *Offset = nullptr; + const SCEV *Scale = nullptr; + Value *Length = nullptr; + Use *CheckUse = nullptr; + RangeCheckKind Kind = RANGE_CHECK_UNKNOWN; static RangeCheckKind parseRangeCheckICmp(Loop *L, ICmpInst *ICI, ScalarEvolution &SE, Value *&Index, @@ -130,10 +130,6 @@ class InductiveRangeCheck { SmallVectorImpl<InductiveRangeCheck> &Checks, SmallPtrSetImpl<Value *> &Visited); - InductiveRangeCheck() - : Offset(nullptr), Scale(nullptr), Length(nullptr), - CheckUse(nullptr) {} - public: const SCEV *getOffset() const { return Offset; } const SCEV *getScale() const { return Scale; } |