From 6467d1d275160292a5bcdbc57594261e63da54d3 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 4 Mar 2022 15:10:51 +0100 Subject: [PATCH] [CoroFrame] Remove unused insertSpills() return value (NFC) --- llvm/lib/Transforms/Coroutines/CoroFrame.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/llvm/lib/Transforms/Coroutines/CoroFrame.cpp b/llvm/lib/Transforms/Coroutines/CoroFrame.cpp index 1fb4841..53f2756 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 -- 2.7.4