Skip to content

Commit cf2b498

Browse files
committed
[llvm/Transforms] Fix warning: private field 'MSSA' is not used
1 parent 3f5976c commit cf2b498

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/Scalar/IndVarSimplify.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ class IndVarSimplify {
140140
const DataLayout &DL;
141141
TargetLibraryInfo *TLI;
142142
const TargetTransformInfo *TTI;
143-
MemorySSA *MSSA;
144143
std::unique_ptr<MemorySSAUpdater> MSSAU;
145144

146145
SmallVector<WeakTrackingVH, 16> DeadInsts;
@@ -167,7 +166,7 @@ class IndVarSimplify {
167166
IndVarSimplify(LoopInfo *LI, ScalarEvolution *SE, DominatorTree *DT,
168167
const DataLayout &DL, TargetLibraryInfo *TLI,
169168
TargetTransformInfo *TTI, MemorySSA *MSSA)
170-
: LI(LI), SE(SE), DT(DT), DL(DL), TLI(TLI), TTI(TTI), MSSA(MSSA) {
169+
: LI(LI), SE(SE), DT(DT), DL(DL), TLI(TLI), TTI(TTI) {
171170
if (MSSA)
172171
MSSAU = std::make_unique<MemorySSAUpdater>(MSSA);
173172
}

0 commit comments

Comments
 (0)