From: Ted Kremenek Date: Wed, 16 Jan 2008 05:49:09 +0000 (+0000) Subject: Changed 'Profile' method for DSPtr to incorporate the flags from the X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed371ce944d703e51ac3c61c988279221c4a1bfe;p=clang 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 2e1aabdcf0..314902e922 100644 --- a/Analysis/GRConstants.cpp +++ b/Analysis/GRConstants.cpp @@ -52,7 +52,7 @@ public: 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; }