aboutsummaryrefslogtreecommitdiffstats
path: root/lib/IR/Attributes.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-01-09 09:26:23 +0000
committerBill Wendling <isanbard@gmail.com>2013-01-09 09:26:23 +0000
commit53208a91a0ff20a956357147472d75058c2d5cce (patch)
tree69c10508ac44e8b0bd7f74c845fed654167afe84 /lib/IR/Attributes.cpp
parent1977675a50ceeb7ae8ac2b1f219234ec4f0c224a (diff)
downloadexternal_llvm-53208a91a0ff20a956357147472d75058c2d5cce.zip
external_llvm-53208a91a0ff20a956357147472d75058c2d5cce.tar.gz
external_llvm-53208a91a0ff20a956357147472d75058c2d5cce.tar.bz2
Alter the hasing computation when inserting into the folding set.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171960 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/Attributes.cpp')
-rw-r--r--lib/IR/Attributes.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/IR/Attributes.cpp b/lib/IR/Attributes.cpp
index cdea350..a1f306c 100644
--- a/lib/IR/Attributes.cpp
+++ b/lib/IR/Attributes.cpp
@@ -45,8 +45,7 @@ Attribute Attribute::get(LLVMContext &Context, AttrBuilder &B) {
// Otherwise, build a key to look up the existing attributes.
LLVMContextImpl *pImpl = Context.pImpl;
FoldingSetNodeID ID;
- // FIXME: Don't look up ConstantInts here.
- ID.AddPointer(ConstantInt::get(Type::getInt64Ty(Context), B.getBitMask()));
+ ID.AddInteger(B.getBitMask());
void *InsertPoint;
AttributeImpl *PA = pImpl->AttrsSet.FindNodeOrInsertPos(ID, InsertPoint);