llvm.org GIT mirror llvm / 3e3e789
Use proper return type for attribute index. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173639 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 7 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
352352 unsigned getNumSlots() const;
353353
354354 /// \brief Return the index for the given slot.
355 unsigned getSlotIndex(unsigned Slot) const;
355 uint64_t getSlotIndex(unsigned Slot) const;
356356
357357 /// \brief Return the attributes at the given slot.
358358 AttributeSet getSlotAttributes(unsigned Slot) const;
693693 return pImpl ? pImpl->getNumAttributes() : 0;
694694 }
695695
696 unsigned AttributeSet::getSlotIndex(unsigned Slot) const {
696 uint64_t AttributeSet::getSlotIndex(unsigned Slot) const {
697697 assert(pImpl && Slot < pImpl->getNumAttributes() &&
698698 "Slot # out of range!");
699699 return pImpl->getSlotIndex(Slot);