summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Attributes.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-01-09 00:32:08 +0000
committerBill Wendling <isanbard@gmail.com>2013-01-09 00:32:08 +0000
commit69fa5c0d99e71145c06831a466b3cb11dea87e5f (patch)
treea11d6068ea052a5dec12317ce3d546797c739ac1 /llvm/lib/IR/Attributes.cpp
parentf0537ab6815c3b2b7ef4d8cd4779285108fe8a08 (diff)
downloadbcm5719-llvm-69fa5c0d99e71145c06831a466b3cb11dea87e5f.tar.gz
bcm5719-llvm-69fa5c0d99e71145c06831a466b3cb11dea87e5f.zip
Add the integer value of the ConstantInt instead of the Constant* value.
This is causing some problems. The root cause is unknown at this time. llvm-svn: 171923
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r--llvm/lib/IR/Attributes.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp
index bef7a6c1749..01a59a33c0f 100644
--- a/llvm/lib/IR/Attributes.cpp
+++ b/llvm/lib/IR/Attributes.cpp
@@ -509,6 +509,14 @@ void AttributeImpl::setStackAlignment(unsigned Align) {
Vals.push_back(ConstantInt::get(Type::getInt64Ty(Context), Align));
}
+void Profile(FoldingSetNodeID &ID, Constant *Data,
+ ArrayRef<Constant*> Vals) {
+ ID.AddInteger(cast<ConstantInt>(Data)->getZExtValue());
+ for (ArrayRef<Constant*>::iterator I = Vals.begin(), E = Vals.end();
+ I != E; ++I)
+ ID.AddPointer(*I);
+}
+
//===----------------------------------------------------------------------===//
// AttributeSetImpl Definition
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud