Skip to content

Commit e9253b7

Browse files
authored
Merge pull request #80952 from gottesmm/pr-fed954ec5197ef80d86a4c4e9c9ca2de9ad8687a
[silgen] Fix a small typo bug I found on inspection.
2 parents 1281f59 + 132eb93 commit e9253b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILGen/ResultPlan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class IndirectOpenedSelfCleanup final : public Cleanup {
8181
assert(box && "buffer never emitted before activating cleanup?!");
8282
auto theBox = box;
8383
if (SGF.getASTContext().SILOpts.supportsLexicalLifetimes(SGF.getModule())) {
84-
if (auto *bbi = cast<BeginBorrowInst>(theBox)) {
84+
if (auto *bbi = dyn_cast<BeginBorrowInst>(theBox)) {
8585
SGF.B.createEndBorrow(loc, bbi);
8686
theBox = bbi->getOperand();
8787
}

0 commit comments

Comments
 (0)