swift
23747bbb - SILGen: Coordinate access strategy determination with actual codegen in `findStorageReferenceExprForMoveOnly`.

Commit
262 days ago
SILGen: Coordinate access strategy determination with actual codegen in `findStorageReferenceExprForMoveOnly`. Looking at the AST-level `getReadImpl` doesn't always correspond to what accessor SILGen prefers to use, due to resilience, ABI rules, and other concerns. In findStorageReferenceExprForMoveOnly, when determining whether a storage reference is borrowable, use the same logic as SILGenLValue actually uses to determine what storage or accessor access strategy to use. Fixes rdar://142509673
Author
Parents
Loading