Skip to content

Commit 2287532

Browse files
committed
[BasicAA] Remove unused variables (NFC)
Split out from #98608.
1 parent 6300233 commit 2287532

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

llvm/lib/Analysis/BasicAliasAnalysis.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,8 +1159,6 @@ AliasResult BasicAAResult::aliasGEP(
11591159
APInt &Off = DecompGEP1.Offset;
11601160

11611161
// Initialize for Off >= 0 (V2 <= GEP1) case.
1162-
const Value *LeftPtr = V2;
1163-
const Value *RightPtr = GEP1;
11641162
LocationSize VLeftSize = V2Size;
11651163
LocationSize VRightSize = V1Size;
11661164
const bool Swapped = Off.isNegative();
@@ -1172,7 +1170,6 @@ AliasResult BasicAAResult::aliasGEP(
11721170
// ---------------->|
11731171
// |-->V1Size |-------> V2Size
11741172
// GEP1 V2
1175-
std::swap(LeftPtr, RightPtr);
11761173
std::swap(VLeftSize, VRightSize);
11771174
Off = -Off;
11781175
}

0 commit comments

Comments
 (0)