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/Parser.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/Parser.cpp')
-rw-r--r-- | lib/Expr/Parser.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/lib/Expr/Parser.cpp b/lib/Expr/Parser.cpp index a2a5d2e2..496472bf 100644 --- a/lib/Expr/Parser.cpp +++ b/lib/Expr/Parser.cpp @@ -529,7 +529,7 @@ DeclResult ParserImpl::ParseArrayDecl() { // Create the initial version reference. VersionSymTab.insert(std::make_pair(Label, - UpdateList(Root, true, NULL))); + UpdateList(Root, NULL))); return AD; } @@ -577,8 +577,7 @@ DeclResult ParserImpl::ParseQueryCommand() { for (std::map<const Identifier*, const ArrayDecl*>::iterator it = ArraySymTab.begin(), ie = ArraySymTab.end(); it != ie; ++it) { VersionSymTab.insert(std::make_pair(it->second->Name, - UpdateList(it->second->Root, - true, NULL))); + UpdateList(it->second->Root, NULL))); } @@ -1284,8 +1283,7 @@ VersionResult ParserImpl::ParseVersionSpecifier() { if (it == VersionSymTab.end()) { Error("invalid version reference.", LTok); - return VersionResult(false, - UpdateList(0, true, NULL)); + return VersionResult(false, UpdateList(0, NULL)); } return it->second; @@ -1302,8 +1300,7 @@ VersionResult ParserImpl::ParseVersionSpecifier() { VersionResult Res = ParseVersion(); // Define update list to avoid use-of-undef errors. if (!Res.isValid()) { - Res = VersionResult(true, - UpdateList(new Array(0, -1, 0), true, NULL)); + Res = VersionResult(true, UpdateList(new Array(0, -1, 0), NULL)); } if (Label) @@ -1332,7 +1329,7 @@ namespace { /// update-list - lhs '=' rhs [',' update-list] VersionResult ParserImpl::ParseVersion() { if (Tok.kind != Token::LSquare) - return VersionResult(false, UpdateList(0, false, NULL)); + return VersionResult(false, UpdateList(0, NULL)); std::vector<WriteInfo> Writes; ConsumeLSquare(); @@ -1358,11 +1355,11 @@ VersionResult ParserImpl::ParseVersion() { } ExpectRSquare("expected close of update list"); - VersionHandle Base(0, false, NULL); + VersionHandle Base(0, NULL); if (Tok.kind != Token::At) { Error("expected '@'.", Tok); - return VersionResult(false, UpdateList(0, true, NULL)); + return VersionResult(false, UpdateList(0, NULL)); } ConsumeExpectedToken(Token::At); |