We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4369c9c commit d9a2ff4Copy full SHA for d9a2ff4
lib/SIL/Utils/PrunedLiveness.cpp
@@ -249,7 +249,7 @@ void PrunedLiveRange<LivenessWithDefs>::updateForUse(
249
// argument must be copied.
250
auto iterAndSuccess = users.insert({user, lifetimeEnding});
251
if (!iterAndSuccess.second) {
252
- if (isa<BranchInst>(user)) {
+ if (isa<BranchInst>(user) || isa<ReturnBorrowInst>(user)) {
253
branchMeetInPlace(iterAndSuccess.first->second, lifetimeEnding);
254
} else {
255
iterAndSuccess.first->second.meetInPlace(lifetimeEnding);
0 commit comments