]> granicus.if.org Git - clang/commitdiff
Fixed broken bitmasking in the ctor of ProgramPoint.
authorTed Kremenek <kremenek@apple.com>
Wed, 16 Jan 2008 19:11:06 +0000 (19:11 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 16 Jan 2008 19:11:06 +0000 (19:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46081 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/ProgramPoint.h

index babea74f609c0242d78e0a5bb87c24378b313240..39ce03fd968466a36a512306dcf22829fff16227 100644 (file)
@@ -33,7 +33,7 @@ protected:
     assert ((reinterpret_cast<uintptr_t>(const_cast<void*>(Ptr)) & 0x7) == 0
             && "Address must have at least an 8-byte alignment.");
     
-    Data = reinterpret_cast<uintptr_t>(const_cast<void*>(Ptr)) & k;
+    Data = reinterpret_cast<uintptr_t>(const_cast<void*>(Ptr)) | k;
   }
   
   ProgramPoint() : Data(0) {}