diff --git a/llvm/include/llvm/Analysis/LoopAccessAnalysis.h b/llvm/include/llvm/Analysis/LoopAccessAnalysis.h index 9e9aaa32c64f..bbbf370c91fe 100644 --- a/llvm/include/llvm/Analysis/LoopAccessAnalysis.h +++ b/llvm/include/llvm/Analysis/LoopAccessAnalysis.h @@ -175,8 +175,8 @@ public: }; MemoryDepChecker(PredicatedScalarEvolution &PSE, const Loop *L) - : PSE(PSE), InnermostLoop(L), AccessIdx(0), MaxSafeRegisterWidth(-1U), - FoundNonConstantDistanceDependence(false), + : PSE(PSE), InnermostLoop(L), AccessIdx(0), MaxSafeDepDistBytes(0), + MaxSafeRegisterWidth(-1U), FoundNonConstantDistanceDependence(false), Status(VectorizationSafetyStatus::Safe), RecordDependences(true) {} /// Register the location (instructions are given increasing numbers) @@ -750,11 +750,11 @@ private: DenseMap> LoopAccessInfoMap; // The used analysis passes. - ScalarEvolution *SE; - const TargetLibraryInfo *TLI; - AliasAnalysis *AA; - DominatorTree *DT; - LoopInfo *LI; + ScalarEvolution *SE = nullptr; + const TargetLibraryInfo *TLI = nullptr; + AliasAnalysis *AA = nullptr; + DominatorTree *DT = nullptr; + LoopInfo *LI = nullptr; }; /// This analysis provides dependence information for the memory