From d56982b6f5fb17fb1fa50b31ab4b67b8d3a76c24 Mon Sep 17 00:00:00 2001 From: Michael Forster Date: Mon, 21 Dec 2020 16:21:31 +0100 Subject: [PATCH] Remove unused variables. Differential Revision: https://reviews.llvm.org/D93635 --- llvm/lib/Transforms/IPO/IROutliner.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/llvm/lib/Transforms/IPO/IROutliner.cpp b/llvm/lib/Transforms/IPO/IROutliner.cpp index 4031eedced7c1..c879031faf5ae 100644 --- a/llvm/lib/Transforms/IPO/IROutliner.cpp +++ b/llvm/lib/Transforms/IPO/IROutliner.cpp @@ -429,8 +429,7 @@ findExtractedInputToOverallInputMapping(OutlinableRegion &Region, // It is not a constant, check if it is a sunken alloca. If it is not, // create the mapping from extracted to overall. If it is, create the // mapping of the index to the value. - unsigned Found = ArgInputs.count(Input); - assert(Found && "Input cannot be found!"); + assert(ArgInputs.count(Input) && "Input cannot be found!"); Region.ExtractedArgToAgg.insert(std::make_pair(OriginalIndex, TypeIndex)); Region.AggArgToExtracted.insert(std::make_pair(TypeIndex, OriginalIndex)); @@ -475,7 +474,6 @@ void IROutliner::findAddInputsOutputs(Module &M, OutlinableRegion &Region) { /// \returns a call instruction with the replaced function. CallInst *replaceCalledFunction(Module &M, OutlinableRegion &Region) { std::vector NewCallArgs; - DenseMap::iterator ArgPair; OutlinableGroup &Group = *Region.Parent; CallInst *Call = Region.Call;