[llvm][utils] Fix innocuous off by one in lldb formatters
authorDave Lee <davelee.com@gmail.com>
Fri, 26 Feb 2021 16:04:53 +0000 (08:04 -0800)
committerDave Lee <davelee.com@gmail.com>
Fri, 26 Feb 2021 16:10:41 +0000 (08:10 -0800)
commita01a406bba8ac624a876f8d5720e1d4949a5b0fa
treeeb3b169bac0898c815e763c39a0e379c71907201
parent740e69b6fdc2b1415065f3d20acc4d10a73edb00
[llvm][utils] Fix innocuous off by one in lldb formatters

num_children is "last_index" + 1, thus
    num_children + 1 = "last_index" + 2

this worked anyway because the index of `$$dereference$$` would work as long as
it was past the last index.
llvm/utils/lldbDataFormatters.py