Change getSlotIndex to return unsigned.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 30 Apr 2013 16:53:38 +0000 (16:53 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 30 Apr 2013 16:53:38 +0000 (16:53 +0000)
commit76f103e02164d27b41bd92a9767c7012482ba31a
tree7ddb1e4f8b2e6f315722bc39c24efef5501c3445
parente87dadc44b1544c35e13cf48dfe167109929a944
Change getSlotIndex to return unsigned.

The actual storage was already using unsigned, but the interface was using
uint64_t. This is wasteful on 32 bits and looks to be the root causes of
a miscompilation on Windows where a value was being sign extended to 64bits
to compare with the result of getSlotIndex.

Patch by Pasi Parviainen!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180791 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Attributes.h
lib/IR/AttributeImpl.h
lib/IR/Attributes.cpp