diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-08-28 15:19:49 +0000 |
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-08-28 15:19:49 +0000 |
| commit | b569624049311a6975495a82abc9fa78d4548c44 (patch) | |
| tree | 95d65af2566a52d611400c8103a4f5aa071e9c46 | |
| parent | 3c307370c8f865299a788bc8b26970e6d56b0571 (diff) | |
| download | bcm5719-llvm-b569624049311a6975495a82abc9fa78d4548c44.tar.gz bcm5719-llvm-b569624049311a6975495a82abc9fa78d4548c44.zip | |
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
| -rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineInternal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h index 71883b5692d..6a7f90a11a5 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h +++ b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h @@ -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 |

