summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-01-16 19:11:06 +0000
committerTed Kremenek <kremenek@apple.com>2008-01-16 19:11:06 +0000
commit334139f58e3a4a2b784983284c52196c2d55867a (patch)
treec838a9c7df7a5351f757258a3bef5e504033d459
parentAdded missing call to the checker's Initialize() method in the alternate (diff)
downloadllvm-project-334139f58e3a4a2b784983284c52196c2d55867a.tar.gz
llvm-project-334139f58e3a4a2b784983284c52196c2d55867a.tar.bz2
llvm-project-334139f58e3a4a2b784983284c52196c2d55867a.zip
Fixed broken bitmasking in the ctor of ProgramPoint.
llvm-svn: 46081
-rw-r--r--clang/include/clang/Analysis/ProgramPoint.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/include/clang/Analysis/ProgramPoint.h b/clang/include/clang/Analysis/ProgramPoint.h
index babea74f609c..39ce03fd9684 100644
--- a/clang/include/clang/Analysis/ProgramPoint.h
+++ b/clang/include/clang/Analysis/ProgramPoint.h
@@ -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) {}