summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Attributes.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-01-27 23:50:44 +0000
committerBill Wendling <isanbard@gmail.com>2013-01-27 23:50:44 +0000
commit3217eb652b5d377a7257d78e16e988c48a1b71c2 (patch)
tree5eefe5b09bbfad8576a1f5fe3aabaafd96d4ab7b /llvm/lib/IR/Attributes.cpp
parentdbbe7fe8652c971cda80d8b175b6c3f4bb696f80 (diff)
downloadbcm5719-llvm-3217eb652b5d377a7257d78e16e988c48a1b71c2.tar.gz
bcm5719-llvm-3217eb652b5d377a7257d78e16e988c48a1b71c2.zip
Use proper return type for attribute index.
llvm-svn: 173639
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r--llvm/lib/IR/Attributes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp
index 81390f0bc14..8e64a49c47a 100644
--- a/llvm/lib/IR/Attributes.cpp
+++ b/llvm/lib/IR/Attributes.cpp
@@ -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);
OpenPOWER on IntegriCloud