forked from OSchip/llvm-project
Use proper return type for attribute index.
llvm-svn: 173639
This commit is contained in:
parent
dbbe7fe865
commit
3217eb652b
|
@ -353,7 +353,7 @@ public:
|
|||
unsigned getNumSlots() const;
|
||||
|
||||
/// \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.
|
||||
AttributeSet getSlotAttributes(unsigned Slot) const;
|
||||
|
|
|
@ -694,7 +694,7 @@ unsigned AttributeSet::getNumSlots() const {
|
|||
return pImpl ? pImpl->getNumAttributes() : 0;
|
||||
}
|
||||
|
||||
unsigned AttributeSet::getSlotIndex(unsigned Slot) const {
|
||||
uint64_t AttributeSet::getSlotIndex(unsigned Slot) const {
|
||||
assert(pImpl && Slot < pImpl->getNumAttributes() &&
|
||||
"Slot # out of range!");
|
||||
return pImpl->getSlotIndex(Slot);
|
||||
|
|
Loading…
Reference in New Issue