[cfe-commits] r46081 - /cfe/trunk/include/clang/Analysis/ProgramPoint.h
Ted Kremenek
kremenek at apple.com
Wed Jan 16 11:11:06 PST 2008
Author: kremenek
Date: Wed Jan 16 13:11:06 2008
New Revision: 46081
URL: http://llvm.org/viewvc/llvm-project?rev=46081&view=rev
Log:
Fixed broken bitmasking in the ctor of ProgramPoint.
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=46081&r1=46080&r2=46081&view=diff
==============================================================================
--- cfe/trunk/include/clang/Analysis/ProgramPoint.h (original)
+++ cfe/trunk/include/clang/Analysis/ProgramPoint.h Wed Jan 16 13:11:06 2008
@@ -33,7 +33,7 @@
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) {}
More information about the cfe-commits
mailing list