================
@@ -55,8 +57,10 @@ static void rewriteFuncWithReturnType(Function &OldF, Value 
*NewRetValue) {
   BasicBlock::iterator NewValIt =
       NewRetI ? NewRetI->getIterator() : EntryBB.end();
 
+  Type *OldRetTy = OldFuncTy->getReturnType();
+
   // Hack up any return values in other blocks, we can't leave them as ret 
void.
----------------
fhahn wrote:

Comment needs updating?

```suggestion
  // Hack up any return values in other blocks, we can't leave them as 
returning OldRetTy.
```



https://github.com/llvm/llvm-project/pull/134035
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to