]> granicus.if.org Git - llvm/commit
[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)
commitbd415ffbdecd30a060cd340621f2a13cbfae740d
tree567b1e9377b8b052f0f9617ff49940964e2f2da1
parent506fab7413c72a8c475b1a2e2fcc708e712a0e1c
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368998 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp