diff options
| author | Ted Kremenek <kremenek@apple.com> | 2008-08-27 01:27:52 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2008-08-27 01:27:52 +0000 |
| commit | 6f7c419308b095f3692dfbab4293386ff025a064 (patch) | |
| tree | 35060a9de61be4eb149804faf0f7622fc5679938 /clang/lib/Analysis | |
| parent | 5ca269e684ec835fb4cb26de2202a28b09d6e3af (diff) | |
| download | bcm5719-llvm-6f7c419308b095f3692dfbab4293386ff025a064.tar.gz bcm5719-llvm-6f7c419308b095f3692dfbab4293386ff025a064.zip | |
Make implementation of ExplodedNodeImpl::addPredecessor out-of-line.
llvm-svn: 55402
Diffstat (limited to 'clang/lib/Analysis')
| -rw-r--r-- | clang/lib/Analysis/ExplodedGraph.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/Analysis/ExplodedGraph.cpp b/clang/lib/Analysis/ExplodedGraph.cpp index 95904cd3878..0835944250f 100644 --- a/clang/lib/Analysis/ExplodedGraph.cpp +++ b/clang/lib/Analysis/ExplodedGraph.cpp @@ -27,6 +27,12 @@ static inline std::vector<ExplodedNodeImpl*>& getVector(void* P) { return *reinterpret_cast<std::vector<ExplodedNodeImpl*>*>(P); } +void ExplodedNodeImpl::addPredecessor(ExplodedNodeImpl* V) { + assert (!V->isSink()); + Preds.addNode(V); + V->Succs.addNode(this); +} + void ExplodedNodeImpl::NodeGroup::addNode(ExplodedNodeImpl* N) { assert ((reinterpret_cast<uintptr_t>(N) & Mask) == 0x0); |

