Skip to content

Conversation

@ngrodzitski
Copy link
Member

@ngrodzitski ngrodzitski commented Oct 21, 2025

Make sure op_ctx tis doing reset at a scope exit receives own independent object to call reset on it.

I'm not sure of the exact cause but maybe LLVM on macos takes a different approach handling lifetime of the object captured when lambda finishes it's scope. Copying the context object to reset lambda capture does the job regardless of lifetime of initial context object.

Make sure `op_ctx` to do a reset at scope exist receives own independent object to call reset on it.
I'm not sure of the exact cause but maybe llvm on macos takes a different approach
handling lifetime of the object captured when lambda finishes it's scope.
Copying the context object to reset lambda capture does the job regardles of lifetime of
initial context object.
@eao197
Copy link
Member

eao197 commented Oct 21, 2025

Thanks for the PR!
I'll merge it a bit later.

@eao197 eao197 merged commit 8047c8f into 0.7-dev Oct 21, 2025
24 checks passed
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.

3 participants