<rdar://problem/15776874>

ValueObjectPrinter could enter an infinite loop while trying to display an aptly formed ValueObject: a reference, with a child of some pointer type, such that the pointees chain ended up pointing back to some part of itself - a pointer to itself being the simplest such case

Fixed here by only setting a pointer depth when needed, and ensuring that we won't overflow and wrap the pointer depth when it's zero.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@200247 91177308-0d34-0410-b5e6-96231b3b80d8