We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6300233 commit 2287532Copy full SHA for 2287532
llvm/lib/Analysis/BasicAliasAnalysis.cpp
@@ -1159,8 +1159,6 @@ AliasResult BasicAAResult::aliasGEP(
1159
APInt &Off = DecompGEP1.Offset;
1160
1161
// Initialize for Off >= 0 (V2 <= GEP1) case.
1162
- const Value *LeftPtr = V2;
1163
- const Value *RightPtr = GEP1;
1164
LocationSize VLeftSize = V2Size;
1165
LocationSize VRightSize = V1Size;
1166
const bool Swapped = Off.isNegative();
@@ -1172,7 +1170,6 @@ AliasResult BasicAAResult::aliasGEP(
1172
1170
// ---------------->|
1173
1171
// |-->V1Size |-------> V2Size
1174
// GEP1 V2
1175
- std::swap(LeftPtr, RightPtr);
1176
std::swap(VLeftSize, VRightSize);
1177
Off = -Off;
1178
}
0 commit comments