Skip to content

Commit 79496ab

Browse files
committed
Return BorrowedValueKind::Invalid for GuaranteedForwardingPhi
1 parent 5b6c814 commit 79496ab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/swift/SIL/OwnershipUtils.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,9 @@ class BorrowedValueKind {
527527
})) {
528528
return Kind::Invalid;
529529
}
530+
if (isGuaranteedForwardingPhi(value)) {
531+
return Kind::Invalid;
532+
}
530533
return Kind::Phi;
531534
}
532535
}

0 commit comments

Comments
 (0)