[llvm] ba0be69 - [Attributor][NFC] Rename variable to be less confusing
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 25 17:47:47 PDT 2023
Author: Johannes Doerfert
Date: 2023-07-25T17:47:33-07:00
New Revision: ba0be698c5aaee0cfa43ea9c48ffca7bfb5fdfd5
URL: https://github.com/llvm/llvm-project/commit/ba0be698c5aaee0cfa43ea9c48ffca7bfb5fdfd5
DIFF: https://github.com/llvm/llvm-project/commit/ba0be698c5aaee0cfa43ea9c48ffca7bfb5fdfd5.diff
LOG: [Attributor][NFC] Rename variable to be less confusing
Added:
Modified:
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
index 12bb188c648651..274f3167a0a41d 100644
--- a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
+++ b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
@@ -11279,12 +11279,12 @@ struct AAPotentialValuesArgument final : AAPotentialValuesImpl {
ChangeStatus updateImpl(Attributor &A) override {
auto AssumedBefore = getAssumed();
- unsigned CSArgNo = getCallSiteArgNo();
+ unsigned ArgNo = getCalleeArgNo();
bool UsedAssumedInformation = false;
SmallVector<AA::ValueAndContext> Values;
auto CallSitePred = [&](AbstractCallSite ACS) {
- const auto CSArgIRP = IRPosition::callsite_argument(ACS, CSArgNo);
+ const auto CSArgIRP = IRPosition::callsite_argument(ACS, ArgNo);
if (CSArgIRP.getPositionKind() == IRP_INVALID)
return false;
More information about the llvm-commits
mailing list