Merge pull request #30204 from atrick/no-borrow-address

This commit is contained in:
swift-ci
2020-03-04 19:23:46 -08:00
committed by GitHub
3 changed files with 32 additions and 21 deletions

View File

@@ -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.
///