Skip to content

Commit 19ec5ce

Browse files
authored
Update ReduceValuesToReturn.cpp
1 parent d5457f8 commit 19ec5ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/llvm-reduce/deltas/ReduceValuesToReturn.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static void rewriteFuncWithReturnType(Function &OldF, Value *NewRetValue) {
5959

6060
Type *OldRetTy = OldFuncTy->getReturnType();
6161

62-
// Hack up any return values in other blocks, we can't leave them as ret void.
62+
// Hack up any return values in other blocks, we can't leave them as returning OldRetTy.
6363
if (OldRetTy != NewRetTy) {
6464
for (BasicBlock &OtherRetBB : OldF) {
6565
if (&OtherRetBB != NewRetBlock) {

0 commit comments

Comments
 (0)