diff options
author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2016-05-26 01:50:18 +0000 |
---|---|---|
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2016-05-26 01:50:18 +0000 |
commit | ee77a4828e2efdd3c0a6896da0ef5804b08c1cbe (patch) | |
tree | 88e29127af96f6e4354b2c5a1ccb364ee1ba5d67 /llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp | |
parent | 683abe79b231481f4b2ddda83980258f290cdb35 (diff) | |
download | bcm5719-llvm-ee77a4828e2efdd3c0a6896da0ef5804b08c1cbe.tar.gz bcm5719-llvm-ee77a4828e2efdd3c0a6896da0ef5804b08c1cbe.zip |
[IRCE] Use C++11 style initializers; NFC
llvm-svn: 270815
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; } |