mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Alter the hasing computation when inserting into the folding set.
llvm-svn: 171960
This commit is contained in:
parent
77979f41f2
commit
8416bf8a7e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user