]> granicus.if.org Git - clang/commitdiff
Fixed bit-setting bug for ExplodedNodeImpl::NodeGroup.
authorTed Kremenek <kremenek@apple.com>
Tue, 29 Jan 2008 23:31:09 +0000 (23:31 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 29 Jan 2008 23:31:09 +0000 (23:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46535 91177308-0d34-0410-b5e6-96231b3b80d8

Analysis/ExplodedGraph.cpp

index 1cfb02c78777219f0a97daf68db7fe8a2e33b3c2..826162f243839991554a822764228cce5f307cca 100644 (file)
@@ -28,7 +28,7 @@ void ExplodedNodeImpl::NodeGroup::addNode(ExplodedNodeImpl* N) {
       std::vector<ExplodedNodeImpl*>* V = new std::vector<ExplodedNodeImpl*>();
       V->push_back(NOld);
       V->push_back(N);
-      P = reinterpret_cast<uintptr_t>(V) & SizeOther;
+      P = reinterpret_cast<uintptr_t>(V) | SizeOther;
     }
     else
       P = reinterpret_cast<uintptr_t>(N);