File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
llvm/lib/Transforms/Coroutines Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1518,8 +1518,7 @@ static void createFramePtr(coro::Shape &Shape) {
15181518// whatever
15191519//
15201520//
1521- static Instruction *insertSpills (const FrameDataInfo &FrameData,
1522- coro::Shape &Shape) {
1521+ static void insertSpills (const FrameDataInfo &FrameData, coro::Shape &Shape) {
15231522 auto *CB = Shape.CoroBegin ;
15241523 LLVMContext &C = CB->getContext ();
15251524 IRBuilder<> Builder (C);
@@ -1709,7 +1708,7 @@ static Instruction *insertSpills(const FrameDataInfo &FrameData,
17091708 Alloca->replaceAllUsesWith (G);
17101709 Alloca->eraseFromParent ();
17111710 }
1712- return FramePtr ;
1711+ return ;
17131712 }
17141713
17151714 // If we found any alloca, replace all of their remaining uses with GEP
@@ -1769,7 +1768,6 @@ static Instruction *insertSpills(const FrameDataInfo &FrameData,
17691768 AliasPtrTyped, [&](Use &U) { return DT.dominates (CB, U); });
17701769 }
17711770 }
1772- return FramePtr;
17731771}
17741772
17751773// Moves the values in the PHIs in SuccBB that correspong to PredBB into a new
You can’t perform that action at this time.
0 commit comments