Fix uninitialized variable warning in cppcheck. NFCI.

InstCombiner::MaxArraySizeForCombine is set outside the constructor so we need to ensure it has a default initialization value.

llvm-svn: 370220
This commit is contained in:
Simon Pilgrim 2019-08-28 15:19:49 +00:00
parent 3c307370c8
commit b569624049
1 changed files with 1 additions and 1 deletions

View File

@ -739,7 +739,7 @@ public:
Value *LHS, Value *RHS, Instruction *CxtI) const;
/// Maximum size of array considered when transforming.
uint64_t MaxArraySizeForCombine;
uint64_t MaxArraySizeForCombine = 0;
private:
/// Performs a few simplifications for operators which are associative