From: Ted Kremenek Date: Wed, 16 Jan 2008 19:11:06 +0000 (+0000) Subject: Fixed broken bitmasking in the ctor of ProgramPoint. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b365b702229999bf90b668bbe4a95bc0d2293d69;p=clang Fixed broken bitmasking in the ctor of ProgramPoint. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46081 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Analysis/ProgramPoint.h b/include/clang/Analysis/ProgramPoint.h index babea74f60..39ce03fd96 100644 --- a/include/clang/Analysis/ProgramPoint.h +++ b/include/clang/Analysis/ProgramPoint.h @@ -33,7 +33,7 @@ protected: assert ((reinterpret_cast(const_cast(Ptr)) & 0x7) == 0 && "Address must have at least an 8-byte alignment."); - Data = reinterpret_cast(const_cast(Ptr)) & k; + Data = reinterpret_cast(const_cast(Ptr)) | k; } ProgramPoint() : Data(0) {}