Skip to content

Commit 5b847e5

Browse files
committed
Add ArraySemanticsCall::getInstruction method
1 parent cd2d4cc commit 5b847e5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/swift/SILOptimizer/Analysis/ArraySemantic.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ class ArraySemanticsCall {
8383

8484
ArraySemanticsCall() : SemanticsCall(nullptr) {}
8585

86+
/// Return the SemanticsCall
87+
ApplyInst *getInstruction() { return SemanticsCall; }
88+
8689
/// Can we hoist this call.
8790
bool canHoist(SILInstruction *To, DominanceInfo *DT) const;
8891

0 commit comments

Comments
 (0)