[llvm] cf2b498 - [llvm/Transforms] Fix warning: private field 'MSSA' is not used

Jonas Devlieghere via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 22 18:09:54 PST 2020


Author: Jonas Devlieghere
Date: 2020-01-22T18:07:53-08:00
New Revision: cf2b498d284004b82ac6ce94bdd5528e65b9e194

URL: https://github.com/llvm/llvm-project/commit/cf2b498d284004b82ac6ce94bdd5528e65b9e194
DIFF: https://github.com/llvm/llvm-project/commit/cf2b498d284004b82ac6ce94bdd5528e65b9e194.diff

LOG: [llvm/Transforms] Fix warning: private field 'MSSA' is not used

Added: 
    

Modified: 
    llvm/lib/Transforms/Scalar/IndVarSimplify.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
index 259b6aec7b34..89373be3887c 100644
--- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
@@ -140,7 +140,6 @@ class IndVarSimplify {
   const DataLayout &DL;
   TargetLibraryInfo *TLI;
   const TargetTransformInfo *TTI;
-  MemorySSA *MSSA;
   std::unique_ptr<MemorySSAUpdater> MSSAU;
 
   SmallVector<WeakTrackingVH, 16> DeadInsts;
@@ -167,7 +166,7 @@ class IndVarSimplify {
   IndVarSimplify(LoopInfo *LI, ScalarEvolution *SE, DominatorTree *DT,
                  const DataLayout &DL, TargetLibraryInfo *TLI,
                  TargetTransformInfo *TTI, MemorySSA *MSSA)
-      : LI(LI), SE(SE), DT(DT), DL(DL), TLI(TLI), TTI(TTI), MSSA(MSSA) {
+      : LI(LI), SE(SE), DT(DT), DL(DL), TLI(TLI), TTI(TTI) {
     if (MSSA)
       MSSAU = std::make_unique<MemorySSAUpdater>(MSSA);
   }


        


More information about the llvm-commits mailing list