[IRCE] Use C++11 style initializers; NFC

llvm-svn: 270815
This commit is contained in:
Sanjoy Das 2016-05-26 01:50:18 +00:00
parent 683abe79b2
commit ee77a4828e
1 changed files with 5 additions and 9 deletions

View File

@ -115,11 +115,11 @@ class InductiveRangeCheck {
static StringRef rangeCheckKindToStr(RangeCheckKind); static StringRef rangeCheckKindToStr(RangeCheckKind);
const SCEV *Offset; const SCEV *Offset = nullptr;
const SCEV *Scale; const SCEV *Scale = nullptr;
Value *Length; Value *Length = nullptr;
Use *CheckUse; Use *CheckUse = nullptr;
RangeCheckKind Kind; RangeCheckKind Kind = RANGE_CHECK_UNKNOWN;
static RangeCheckKind parseRangeCheckICmp(Loop *L, ICmpInst *ICI, static RangeCheckKind parseRangeCheckICmp(Loop *L, ICmpInst *ICI,
ScalarEvolution &SE, Value *&Index, ScalarEvolution &SE, Value *&Index,
@ -130,10 +130,6 @@ class InductiveRangeCheck {
SmallVectorImpl<InductiveRangeCheck> &Checks, SmallVectorImpl<InductiveRangeCheck> &Checks,
SmallPtrSetImpl<Value *> &Visited); SmallPtrSetImpl<Value *> &Visited);
InductiveRangeCheck()
: Offset(nullptr), Scale(nullptr), Length(nullptr),
CheckUse(nullptr) {}
public: public:
const SCEV *getOffset() const { return Offset; } const SCEV *getOffset() const { return Offset; }
const SCEV *getScale() const { return Scale; } const SCEV *getScale() const { return Scale; }