[PATCH] D93635: Remove unused variables.

Michael Forster via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 21 07:15:55 PST 2020


MForster created this revision.
Herald added a subscriber: hiraditya.
MForster requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D93635

Files:
  llvm/lib/Transforms/IPO/IROutliner.cpp


Index: llvm/lib/Transforms/IPO/IROutliner.cpp
===================================================================
--- llvm/lib/Transforms/IPO/IROutliner.cpp
+++ llvm/lib/Transforms/IPO/IROutliner.cpp
@@ -429,8 +429,7 @@
     // 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 @@
 /// \returns a call instruction with the replaced function.
 CallInst *replaceCalledFunction(Module &M, OutlinableRegion &Region) {
   std::vector<Value *> NewCallArgs;
-  DenseMap<unsigned, unsigned>::iterator ArgPair;
 
   OutlinableGroup &Group = *Region.Parent;
   CallInst *Call = Region.Call;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93635.313104.patch
Type: text/x-patch
Size: 1057 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201221/5aa8b62a/attachment.bin>


More information about the llvm-commits mailing list