[llvm-commits] [llvm] r173638 - Use proper return type for attribute index.

Bill Wendling isanbard at gmail.com
Sun Jan 27 15:49:44 PST 2013


Author: void
Date: Sun Jan 27 17:49:44 2013
New Revision: 173638

URL: http://llvm.org/viewvc/llvm-project?rev=173638&view=rev
Log:
Use proper return type for attribute index.

Modified:
    llvm/trunk/lib/IR/AttributeImpl.h

Modified: llvm/trunk/lib/IR/AttributeImpl.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/AttributeImpl.h?rev=173638&r1=173637&r2=173638&view=diff
==============================================================================
--- llvm/trunk/lib/IR/AttributeImpl.h (original)
+++ llvm/trunk/lib/IR/AttributeImpl.h Sun Jan 27 17:49:44 2013
@@ -137,7 +137,7 @@ public:
   /// is the index of the return, parameter, or function object that the
   /// attributes are applied to, not the index into the AttrNodes list where the
   /// attributes reside.
-  unsigned getSlotIndex(unsigned Slot) const { return AttrNodes[Slot].first; }
+  uint64_t getSlotIndex(unsigned Slot) const { return AttrNodes[Slot].first; }
 
   /// \brief Retrieve the attributes for the given "slot" in the AttrNode list.
   /// \p Slot is an index into the AttrNodes list, not the index of the return /





More information about the llvm-commits mailing list