diff --git a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp index 54b5b5887d35..5a6d93a80c9d 100644 --- a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp +++ b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp @@ -3690,10 +3690,9 @@ static unsigned getKnownAlignForUse(Attributor &A, AAAlign &QueryingAA, return 0; } if (auto *GEP = dyn_cast(I)) { - if (GEP->hasAllConstantIndices()) { + if (GEP->hasAllConstantIndices()) TrackUse = true; - return 0; - } + return 0; } MaybeAlign MA;