diff options
-rw-r--r-- | lib/VMCore/AttributeImpl.h | 4 | ||||
-rw-r--r-- | lib/VMCore/Attributes.cpp | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/lib/VMCore/AttributeImpl.h b/lib/VMCore/AttributeImpl.h index 253d6e8..65ac3ea 100644 --- a/lib/VMCore/AttributeImpl.h +++ b/lib/VMCore/AttributeImpl.h @@ -49,7 +49,9 @@ public: void Profile(FoldingSetNodeID &ID) const { Profile(ID, Data); } - static void Profile(FoldingSetNodeID &ID, Constant *Data); + static void Profile(FoldingSetNodeID &ID, Constant *Data) { + ID.AddPointer(Data); + } }; //===----------------------------------------------------------------------===// diff --git a/lib/VMCore/Attributes.cpp b/lib/VMCore/Attributes.cpp index ad1af45..a1e0856 100644 --- a/lib/VMCore/Attributes.cpp +++ b/lib/VMCore/Attributes.cpp @@ -363,10 +363,6 @@ uint64_t AttributeImpl::getStackAlignment() const { return getBitMask() & getAttrMask(Attribute::StackAlignment); } -void AttributeImpl::Profile(FoldingSetNodeID &ID, Constant *Data) { - ID.AddInteger(cast<ConstantInt>(Data)->getZExtValue()); -} - //===----------------------------------------------------------------------===// // AttributeSetImpl Definition //===----------------------------------------------------------------------===// |