From cf2b498d284004b82ac6ce94bdd5528e65b9e194 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Wed, 22 Jan 2020 18:07:03 -0800 Subject: [PATCH] [llvm/Transforms] Fix warning: private field 'MSSA' is not used --- llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 MSSAU; SmallVector DeadInsts; @@ -167,7 +166,7 @@ public: 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(MSSA); }