Skip to content
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

[BoundsSafety] Don't bind lvalues with temporary locations #10352

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

rapidsna
Copy link

This should fix a miscompilation bug found during adoption. When a base is lvalue and is wrapped in OVE, the compiler incorrectly creates a temporary and maps its address to the lvalue instead of the actual address of the lvalue.

The solution is to emit lvalue directly instead of creating extra temporary.

rdar://146329029

This should fix a miscompilation bug found during adoption.
When a base is lvalue and is wrapped in OVE, the compiler
incorrectly creates a temporary and maps its address to the lvalue
instead of the actual address of the lvalue.

The solution is to emit lvalue directly instead of creating
extra temporary.

rdar://146329029
@rapidsna rapidsna marked this pull request as ready for review March 26, 2025 01:22
@rapidsna rapidsna self-assigned this Mar 26, 2025
@rapidsna
Copy link
Author

@swift-ci test llvm

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