mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-21 05:21:28 +00:00
Use proper return type for attribute index.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173639 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5f33912f91
commit
3e3e789aed
@ -353,7 +353,7 @@ public:
|
|||||||
unsigned getNumSlots() const;
|
unsigned getNumSlots() const;
|
||||||
|
|
||||||
/// \brief Return the index for the given slot.
|
/// \brief Return the index for the given slot.
|
||||||
unsigned getSlotIndex(unsigned Slot) const;
|
uint64_t getSlotIndex(unsigned Slot) const;
|
||||||
|
|
||||||
/// \brief Return the attributes at the given slot.
|
/// \brief Return the attributes at the given slot.
|
||||||
AttributeSet getSlotAttributes(unsigned Slot) const;
|
AttributeSet getSlotAttributes(unsigned Slot) const;
|
||||||
|
@ -694,7 +694,7 @@ unsigned AttributeSet::getNumSlots() const {
|
|||||||
return pImpl ? pImpl->getNumAttributes() : 0;
|
return pImpl ? pImpl->getNumAttributes() : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned AttributeSet::getSlotIndex(unsigned Slot) const {
|
uint64_t AttributeSet::getSlotIndex(unsigned Slot) const {
|
||||||
assert(pImpl && Slot < pImpl->getNumAttributes() &&
|
assert(pImpl && Slot < pImpl->getNumAttributes() &&
|
||||||
"Slot # out of range!");
|
"Slot # out of range!");
|
||||||
return pImpl->getSlotIndex(Slot);
|
return pImpl->getSlotIndex(Slot);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user