HomePhabricator

[llvm][utils] Fix innocuous off by one in lldb formatters

Authored by kastiglione on Feb 26 2021, 8:04 AM.

Description

[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.

Details

Committed
kastiglioneFeb 26 2021, 8:10 AM
Parents
rG740e69b6fdc2: Fix assert to use getTypeStoreSize instead of getPrimitiveSizeInBits,
Branches
Unknown
Tags
Unknown