Skip to content

Invalidate previously known values on lifetime.start - #1406

Open
aokblast wants to merge 1 commit into
AliveToolkit:masterfrom
aokblast:users/aokblast/lifetime/clean_status
Open

aokblast wants to merge 1 commit into
AliveToolkit:masterfrom
aokblast:users/aokblast/lifetime/clean_status

Conversation

@aokblast

@aokblast aokblast commented Dec 3, 2026

Copy link
Copy Markdown

As per the LangRef, lifetime.start can be used multiple times on the same alloca. The object is uninitialized after each lifetime.start.

Therefore, we need to invalidate any previously known value associated with the pointer whenever we encounter a lifetime.start.

Assisted-by: Claude

As per the LangRef, lifetime.start can be used multiple times on the
same alloca. The object is uninitialized after each lifetime.start.

Therefore, we need to invalidate any previously known value associated
with the pointer whenever we encounter a lifetime.start.

Assisted-by: Claude
@aokblast

aokblast commented Dec 3, 2026

Copy link
Copy Markdown
Author

cc @antoniofrighetto @nikic

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.

1 participant