[llvm] 6467d1d - [CoroFrame] Remove unused insertSpills() return value (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 4 06:11:33 PST 2022
Author: Nikita Popov
Date: 2022-03-04T15:11:24+01:00
New Revision: 6467d1d275160292a5bcdbc57594261e63da54d3
URL: https://github.com/llvm/llvm-project/commit/6467d1d275160292a5bcdbc57594261e63da54d3
DIFF: https://github.com/llvm/llvm-project/commit/6467d1d275160292a5bcdbc57594261e63da54d3.diff
LOG: [CoroFrame] Remove unused insertSpills() return value (NFC)
Added:
Modified:
llvm/lib/Transforms/Coroutines/CoroFrame.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Coroutines/CoroFrame.cpp b/llvm/lib/Transforms/Coroutines/CoroFrame.cpp
index 1fb48419df1c0..53f2756f8c850 100644
--- a/llvm/lib/Transforms/Coroutines/CoroFrame.cpp
+++ b/llvm/lib/Transforms/Coroutines/CoroFrame.cpp
@@ -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);
@@ -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
@@ -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
More information about the llvm-commits
mailing list