]> granicus.if.org Git - clang/commitdiff
Changed 'Profile' method for DSPtr to incorporate the flags from the
authorTed Kremenek <kremenek@apple.com>
Wed, 16 Jan 2008 05:49:09 +0000 (05:49 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 16 Jan 2008 05:49:09 +0000 (05:49 +0000)
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

Analysis/GRConstants.cpp

index 2e1aabdcf022ab1692d0f0708cfe0da351464abe..314902e922ff2f24f2fdc8db78fecdad9e49fd22 100644 (file)
@@ -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; }