From b365b702229999bf90b668bbe4a95bc0d2293d69 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Wed, 16 Jan 2008 19:11:06 +0000 Subject: [PATCH] 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 --- include/clang/Analysis/ProgramPoint.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {} -- 2.40.0