[cfe-commits] r46078 - /cfe/trunk/include/clang/Analysis/ProgramPoint.h

Ted Kremenek kremenek at apple.com
Wed Jan 16 10:58:51 PST 2008


Author: kremenek
Date: Wed Jan 16 12:58:48 2008
New Revision: 46078

URL: http://llvm.org/viewvc/llvm-project?rev=46078&view=rev
Log:
Fixed incorrect pointer mask.

Modified:
    cfe/trunk/include/clang/Analysis/ProgramPoint.h

Modified: cfe/trunk/include/clang/Analysis/ProgramPoint.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/ProgramPoint.h?rev=46078&r1=46077&r2=46078&view=diff

==============================================================================
--- cfe/trunk/include/clang/Analysis/ProgramPoint.h (original)
+++ cfe/trunk/include/clang/Analysis/ProgramPoint.h Wed Jan 16 12:58:48 2008
@@ -39,7 +39,7 @@
   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); }
   





More information about the cfe-commits mailing list