Skip to content

Commit 6467d1d

Browse files
committed
[CoroFrame] Remove unused insertSpills() return value (NFC)
1 parent 940d7cd commit 6467d1d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/lib/Transforms/Coroutines/CoroFrame.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)