Changed 'Profile' method for DSPtr to incorporate the flags from the
variant type, and not just the pointer value.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46049 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Analysis/GRConstants.cpp b/Analysis/GRConstants.cpp
index 2e1aabd..314902e 100644
--- a/Analysis/GRConstants.cpp
+++ b/Analysis/GRConstants.cpp
@@ -52,7 +52,7 @@
bool isSubExpr() const { return getKind() == IsSubExp; }
inline void Profile(llvm::FoldingSetNodeID& ID) const {
- ID.AddPointer(getPtr());
+ ID.AddInteger(Raw);
}
inline bool operator==(const DSPtr& X) const { return Raw == X.Raw; }
inline bool operator!=(const DSPtr& X) const { return Raw != X.Raw; }