summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commitf927ad34e77a977b745a386d269093c1b6f099a5 (patch)
tree9320e6a773497f29b0241319d7d4fe9414592312 /llvm/lib
parentfb3f2482e5b0210efae8b2a33842b4b5411b308a (diff)
downloadbcm5719-llvm-f927ad34e77a977b745a386d269093c1b6f099a5.tar.gz
bcm5719-llvm-f927ad34e77a977b745a386d269093c1b6f099a5.zip
Alter the hasing computation when inserting into the folding set.
llvm-svn: 171960
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/IR/Attributes.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp
index cdea3500bb2..a1f306c0ce1 100644
--- a/llvm/lib/IR/Attributes.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud