[lldb] [llvm] [lldb] Fix GetIndexOfChildWithName on register sets (PR #212727)
David Spickett via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 29 03:01:20 PDT 2026
================
@@ -125,28 +125,41 @@ ValueObject *ValueObjectRegisterSet::CreateChildAtIndex(size_t idx) {
return nullptr;
}
+std::optional<std::pair<size_t, const RegisterInfo *>>
----------------
DavidSpickett wrote:
This return type is awkward but the goal is to deduplicate searching the indexes in the set. Which this does, but one function wants the index and the other wants the register info, which complicates it.
So this was my best solution to that.
https://github.com/llvm/llvm-project/pull/212727
More information about the llvm-commits
mailing list