Skip to content

Commit

Permalink
Alter the hasing computation when inserting into the folding set.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171960 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
isanbard committed Jan 9, 2013
1 parent 1977675 commit 53208a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/IR/Attributes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 53208a9

Please sign in to comment.