[llvm] r270815 - [IRCE] Use C++11 style initializers; NFC

Sanjoy Das via llvm-commits llvm-commits at lists.llvm.org
Wed May 25 18:50:18 PDT 2016


Author: sanjoy
Date: Wed May 25 20:50:18 2016
New Revision: 270815

URL: http://llvm.org/viewvc/llvm-project?rev=270815&view=rev
Log:
[IRCE] Use C++11 style initializers; NFC

Modified:
    llvm/trunk/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp?rev=270815&r1=270814&r2=270815&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp Wed May 25 20:50:18 2016
@@ -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; }




More information about the llvm-commits mailing list