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 6838bdc commit 07008f3Copy full SHA for 07008f3
llvm/tools/llvm-reduce/deltas/ReduceValuesToReturn.cpp
@@ -59,7 +59,7 @@ static void rewriteFuncWithReturnType(Function &OldF, Value *NewRetValue) {
59
60
Type *OldRetTy = OldFuncTy->getReturnType();
61
62
- // Hack up any return values in other blocks, we can't leave them as ret void.
+ // Hack up any return values in other blocks, we can't leave them as returning OldRetTy.
63
if (OldRetTy != NewRetTy) {
64
for (BasicBlock &OtherRetBB : OldF) {
65
if (&OtherRetBB != NewRetBlock) {
0 commit comments