diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-06-09 05:40:06 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-06-09 05:40:06 +0000 |
commit | 1b0dfab63d317509f7cbf4d4cc2643fc86e90e4d (patch) | |
tree | 201c0a8be926b662df36c052dd95a08e53e188e8 /lib/Expr/Updates.cpp | |
parent | 6b97844651c092af6ff525d82f4f15c04cd927dc (diff) | |
download | klee-1b0dfab63d317509f7cbf4d4cc2643fc86e90e4d.tar.gz |
Kill off UpdateList::isRooted flag.
- The right way to handle this is by using constant arrays, where the semantics are easier to define and implement. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@73124 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Expr/Updates.cpp')
-rw-r--r-- | lib/Expr/Updates.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/Expr/Updates.cpp b/lib/Expr/Updates.cpp index 7c3f41d4..22544820 100644 --- a/lib/Expr/Updates.cpp +++ b/lib/Expr/Updates.cpp @@ -56,18 +56,15 @@ unsigned UpdateNode::computeHash() { /// -UpdateList::UpdateList(const Array *_root, bool _isRooted, - const UpdateNode *_head) +UpdateList::UpdateList(const Array *_root, const UpdateNode *_head) : root(_root), - head(_head), - isRooted(_isRooted) { + head(_head) { if (head) ++head->refCount; } UpdateList::UpdateList(const UpdateList &b) : root(b.root), - head(b.head), - isRooted(b.isRooted) { + head(b.head) { if (head) ++head->refCount; } @@ -87,7 +84,6 @@ UpdateList &UpdateList::operator=(const UpdateList &b) { if (head && --head->refCount==0) delete head; root = b.root; head = b.head; - isRooted = b.isRooted; return *this; } |