[PATCH] D93635: Remove unused variables.

Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 21 07:25:09 PST 2020


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd56982b6f5fb: Remove unused variables. (authored by MForster, committed by Tres Popp <tpopp at google.com>).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D93635/new/

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.313107.patch
Type: text/x-patch
Size: 1057 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201221/d4fc71a5/attachment.bin>


More information about the llvm-commits mailing list