llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[BoundsSafety] Don't bind lvalues with temporary locations

Open rapidsna opened this issue 1 year ago • 1 comments

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 avatar Mar 26 '25 01:03 rapidsna

@swift-ci test llvm

rapidsna avatar Mar 26 '25 01:03 rapidsna

Closing it, as I identified a regression in a SWB with this change.

rapidsna avatar Jul 25 '25 19:07 rapidsna