aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-01-27 23:49:44 +0000
committerBill Wendling <isanbard@gmail.com>2013-01-27 23:49:44 +0000
commit5f33912f91ec2673545a5e000cc7bf7a0ecccdbd (patch)
tree30532f9eb497a1acbfb39b5f36f71745926577a3
parentd05204aea4977eaec25e96bc7605a7bb9d806fc0 (diff)
Use proper return type for attribute index.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173638 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/IR/AttributeImpl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IR/AttributeImpl.h b/lib/IR/AttributeImpl.h
index babc14e1fa..f9a716cb3c 100644
--- a/lib/IR/AttributeImpl.h
+++ b/lib/IR/AttributeImpl.h
@@ -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 /