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

This commit is contained in:
Jonas Devlieghere 2020-01-22 18:07:03 -08:00
parent 3f5976c97d
commit cf2b498d28
1 changed files with 1 additions and 2 deletions

View File

@ -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 @@ 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<MemorySSAUpdater>(MSSA);
}