Skip to content

[lldb] Fix local buffer not being popped #10699

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: stable/20240723
Choose a base branch
from

Conversation

augusto2112
Copy link

On a recent change in GetDynamicTypeAndAddress_Existential, the local buffer was being pushed but never popped.

rdar://148137949

On a recent change in GetDynamicTypeAndAddress_Existential, the local
buffer was being pushed but never popped.

rdar://148137949
@augusto2112 augusto2112 requested a review from a team as a code owner May 19, 2025 02:19
@augusto2112
Copy link
Author

@swift-ci test

@augusto2112 augusto2112 requested a review from adrian-prantl May 19, 2025 02:20
llvm::expectedToOptional(in_value.GetByteSize()).value_or(0));
auto defer = llvm::make_scope_exit([&] {
if (use_local_buffer)
PopLocalBuffer();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW, would it make sense to create an RAII data structure here so you don't need to manually do the whole scope_exit thing?

@adrian-prantl
Copy link

Can you rebase this on swift/release/6.2?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants