[DAGCombine] MergeConsecutiveStores - fix cppcheck/MSVC extension warning. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 15 Aug 2019 13:07:14 +0000 (13:07 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 15 Aug 2019 13:07:14 +0000 (13:07 +0000)
commited804dad1e6849c5760dee451c5ce6459632d552
tree2024930c179f56e3832c73515476144c1823083d
parent2a903c0b679bae1919f9fc01f78e4bc6cff2add0
[DAGCombine] MergeConsecutiveStores - fix cppcheck/MSVC extension warning. NFCI.

Set the StartIdx type to size_t so that it matches the StoreNodes SmallVector size() and index types.

Silences the MSVC analyzer warning that unsigned increment might overflow before exceeding size_t on 64-bit targets - this isn't likely to happen but it means we use consistent types and reduces the warning "noise" a little.

llvm-svn: 368998
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp