Skip to content

Commit 577928b

Browse files
committed
Index->ArgNo
1 parent 60cbba6 commit 577928b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/IR/Attributes.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1932,8 +1932,8 @@ AttributeList::getParamDereferenceableOrNullBytes(unsigned Index) const {
19321932
}
19331933

19341934
std::optional<ConstantRange>
1935-
AttributeList::getParamRange(unsigned Index) const {
1936-
auto RangeAttr = getParamAttrs(Index).getAttribute(Attribute::Range);
1935+
AttributeList::getParamRange(unsigned ArgNo) const {
1936+
auto RangeAttr = getParamAttrs(ArgNo).getAttribute(Attribute::Range);
19371937
if (RangeAttr.isValid())
19381938
return RangeAttr.getRange();
19391939
return std::nullopt;

0 commit comments

Comments
 (0)