Fix assertion failure in NativeProcessProtocolTest
authorPavel Labath <pavel@labath.sk>
Thu, 27 Dec 2018 13:45:55 +0000 (13:45 +0000)
committerPavel Labath <pavel@labath.sk>
Thu, 27 Dec 2018 13:45:55 +0000 (13:45 +0000)
commit9352f4706a7aaf3d25ff4158ba4f83fbc9e86425
tree3523eefd6fe5a02e6b840d85a9c46ac7092fe5c5
parent018f505c9eb1d94d5c8be9ecd0f440d614c17199
Fix assertion failure in NativeProcessProtocolTest

The assertion fired (with a debug visual studio STL) because we tried to
dereference the end of a vector (although it was only to take its
address again and form an end iterator). Rewrite this logic to avoid the
questionable code.

llvm-svn: 350091
lldb/unittests/Host/NativeProcessProtocolTest.cpp