[BasicAA] Fix stale comment (NFC)

DataLayout is always around...
This commit is contained in:
Nikita Popov 2020-10-17 22:09:32 +02:00
parent 2a75e956e5
commit 3c6fe0fc77
1 changed files with 4 additions and 5 deletions

View File

@ -411,11 +411,10 @@ static unsigned getMaxPointerSize(const DataLayout &DL) {
/// specified amount, but which may have other unrepresented high bits. As /// specified amount, but which may have other unrepresented high bits. As
/// such, the gep cannot necessarily be reconstructed from its decomposed form. /// such, the gep cannot necessarily be reconstructed from its decomposed form.
/// ///
/// When DataLayout is around, this function is capable of analyzing everything /// This function is capable of analyzing everything that getUnderlyingObject
/// that getUnderlyingObject can look through. To be able to do that /// can look through. To be able to do that getUnderlyingObject and
/// getUnderlyingObject and DecomposeGEPExpression must use the same search /// DecomposeGEPExpression must use the same search depth
/// depth (MaxLookupSearchDepth). When DataLayout not is around, it just looks /// (MaxLookupSearchDepth).
/// through pointer casts.
bool BasicAAResult::DecomposeGEPExpression(const Value *V, bool BasicAAResult::DecomposeGEPExpression(const Value *V,
DecomposedGEP &Decomposed, const DataLayout &DL, AssumptionCache *AC, DecomposedGEP &Decomposed, const DataLayout &DL, AssumptionCache *AC,
DominatorTree *DT) { DominatorTree *DT) {