Skip to content

Commit 334139f

Browse files
committed
Fixed broken bitmasking in the ctor of ProgramPoint.
llvm-svn: 46081
1 parent 29a9d00 commit 334139f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/include/clang/Analysis/ProgramPoint.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ProgramPoint {
3333
assert ((reinterpret_cast<uintptr_t>(const_cast<void*>(Ptr)) & 0x7) == 0
3434
&& "Address must have at least an 8-byte alignment.");
3535

36-
Data = reinterpret_cast<uintptr_t>(const_cast<void*>(Ptr)) & k;
36+
Data = reinterpret_cast<uintptr_t>(const_cast<void*>(Ptr)) | k;
3737
}
3838

3939
ProgramPoint() : Data(0) {}

0 commit comments

Comments
 (0)