From ea8e1675032639bde55c278635f61ca3a08b7a01 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sun, 7 Jun 2009 07:59:12 +0000 Subject: Make sure to make up a valid VersionResult on failures. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@73019 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Expr/Parser.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/Expr/Parser.cpp b/lib/Expr/Parser.cpp index b73c72d6..dedbaa3a 100644 --- a/lib/Expr/Parser.cpp +++ b/lib/Expr/Parser.cpp @@ -1123,9 +1123,10 @@ VersionResult ParserImpl::ParseVersionSpecifier() { Token Start = Tok; VersionResult Res = ParseVersion(); // Define update list to avoid use-of-undef errors. - if (!Res.isValid()) - Res = VersionResult(false, - UpdateList(0, true, NULL)); + if (!Res.isValid()) { + Res = VersionResult(true, + UpdateList(new Array(0, -1, 0), true, NULL)); + } if (Label) VersionSymTab.insert(std::make_pair(Label, Res.get())); -- cgit 1.4.1