Skip to content

Commit

Permalink
[CoroFrame] Remove unused insertSpills() return value (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Mar 4, 2022
1 parent 940d7cd commit 6467d1d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions llvm/lib/Transforms/Coroutines/CoroFrame.cpp
Expand Up @@ -1518,8 +1518,7 @@ static void createFramePtr(coro::Shape &Shape) {
// whatever
//
//
static Instruction *insertSpills(const FrameDataInfo &FrameData,
coro::Shape &Shape) {
static void insertSpills(const FrameDataInfo &FrameData, coro::Shape &Shape) {
auto *CB = Shape.CoroBegin;
LLVMContext &C = CB->getContext();
IRBuilder<> Builder(C);
Expand Down Expand Up @@ -1709,7 +1708,7 @@ static Instruction *insertSpills(const FrameDataInfo &FrameData,
Alloca->replaceAllUsesWith(G);
Alloca->eraseFromParent();
}
return FramePtr;
return;
}

// If we found any alloca, replace all of their remaining uses with GEP
Expand Down Expand Up @@ -1769,7 +1768,6 @@ static Instruction *insertSpills(const FrameDataInfo &FrameData,
AliasPtrTyped, [&](Use &U) { return DT.dominates(CB, U); });
}
}
return FramePtr;
}

// Moves the values in the PHIs in SuccBB that correspong to PredBB into a new
Expand Down

0 comments on commit 6467d1d

Please sign in to comment.