Skip to content

Commit 4183abc

Browse files
committed
Fix an obvious bug in findLastUserInBlock.
This crept in the last commit because of rebasing but was never used.
1 parent 4b592c0 commit 4183abc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/SIL/Utils/PrunedLiveness.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ static void findLastUserInBlock(SILBasicBlock *bb,
209209
continue;
210210

211211
boundary.lastUsers.push_back(inst);
212+
return;
212213
}
213214
llvm_unreachable("No user in LiveWithin block");
214215
}

0 commit comments

Comments
 (0)