[llvm-commits] [llvm] r173639 - Use proper return type for attribute index.
Bill Wendling
isanbard at gmail.com
Sun Jan 27 15:50:44 PST 2013
Author: void
Date: Sun Jan 27 17:50:44 2013
New Revision: 173639
URL: http://llvm.org/viewvc/llvm-project?rev=173639&view=rev
Log:
Use proper return type for attribute index.
Modified:
llvm/trunk/include/llvm/IR/Attributes.h
llvm/trunk/lib/IR/Attributes.cpp
Modified: llvm/trunk/include/llvm/IR/Attributes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Attributes.h?rev=173639&r1=173638&r2=173639&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/Attributes.h (original)
+++ llvm/trunk/include/llvm/IR/Attributes.h Sun Jan 27 17:50:44 2013
@@ -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;
Modified: llvm/trunk/lib/IR/Attributes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Attributes.cpp?rev=173639&r1=173638&r2=173639&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Attributes.cpp (original)
+++ llvm/trunk/lib/IR/Attributes.cpp Sun Jan 27 17:50:44 2013
@@ -694,7 +694,7 @@ unsigned AttributeSet::getNumSlots() con
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);
More information about the llvm-commits
mailing list