Check whether the iterator p == the end iterator before trying to dereference it...
authorNick Lewycky <nicholas@mxc.ca>
Sat, 6 Sep 2014 01:16:42 +0000 (01:16 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sat, 6 Sep 2014 01:16:42 +0000 (01:16 +0000)
commit05ad06754c0508ce9c661e84fb109037810eae20
tree786bde8d2a5c8444cc758bd2fbeda4809d936b9d
parent14b2112e2423ecd346895203b72b23888dd469de
Check whether the iterator p == the end iterator before trying to dereference it. This is a speculative fix for a failure found on the valgrind buildbot triggered by a clang test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217295 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/APFloat.cpp