Use proper return type for attribute index.
authorBill Wendling <isanbard@gmail.com>
Sun, 27 Jan 2013 23:50:44 +0000 (23:50 +0000)
committerBill Wendling <isanbard@gmail.com>
Sun, 27 Jan 2013 23:50:44 +0000 (23:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173639 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/Attributes.h
lib/IR/Attributes.cpp

index 297abb96486e2b18d668f628ddae44500e1c6230..89a73d61824f0f50f3ef20a52ef4d01cbd4064e2 100644 (file)
@@ -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;
index 81390f0bc1432e6260340abd8cec9b7864491335..8e64a49c47a6a7cddc4a66139821cc84e7a85925 100644 (file)
@@ -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);