mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #30204 from atrick/no-borrow-address
This commit is contained in:
@@ -53,6 +53,14 @@ namespace swift {
|
||||
/// (pointer-to-address is not stripped).
|
||||
SILValue stripAccessMarkers(SILValue v);
|
||||
|
||||
/// Return a non-null address-type SingleValueInstruction if \p v is the result
|
||||
/// of an address projection that may be inside of a formal access, such as
|
||||
/// (begin_borrow, struct_element_addr, tuple_element_addr).
|
||||
///
|
||||
/// The resulting projection must have an address-type operand at index zero
|
||||
/// representing the projected address.
|
||||
SingleValueInstruction *isAccessProjection(SILValue v);
|
||||
|
||||
/// Attempt to return the address corresponding to a variable's formal access
|
||||
/// by stripping indexing and address projections.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user