]> granicus.if.org Git - clang/commitdiff
Fixed incorrect pointer mask.
authorTed Kremenek <kremenek@apple.com>
Wed, 16 Jan 2008 18:58:48 +0000 (18:58 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 16 Jan 2008 18:58:48 +0000 (18:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46078 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/ProgramPoint.h

index 814d565daacff19a1bba1256e16b76ce90cac877..babea74f609c0242d78e0a5bb87c24378b313240 100644 (file)
@@ -39,7 +39,7 @@ protected:
   ProgramPoint() : Data(0) {}
   
 public:    
-  unsigned getKind() const { return Data & 0x5; }  
+  unsigned getKind() const { return Data & 0x7; }  
   void* getRawPtr() const { return reinterpret_cast<void*>(Data & ~0x7); }
   void* getRawData() const { return reinterpret_cast<void*>(Data); }