[LLDB] Fix NSIndexPathSyntheticFrontEnd::Impl::Clear() to only clear the active union...
authorShafik Yaghmour <syaghmour@apple.com>
Thu, 31 Mar 2022 01:00:37 +0000 (18:00 -0700)
committerShafik Yaghmour <syaghmour@apple.com>
Thu, 31 Mar 2022 01:00:37 +0000 (18:00 -0700)
commit14cad95d38235df6c5fd5dd3da84b91fa69e7e74
treea8e16ab7b73fb6827d2bfa4a3f3ea612fed90ae3
parenta4b56d762097008d7449770333adb0b84d66dbdc
[LLDB] Fix NSIndexPathSyntheticFrontEnd::Impl::Clear() to only clear the active union member

NSIndexPathSyntheticFrontEnd::Impl::Clear() currently calls Clear() on both
unions members regardless of which one is active. I modified it to only call
Clear() on the active member.

Differential Revision: https://reviews.llvm.org/D122753
lldb/source/Plugins/Language/ObjC/NSIndexPath.cpp