about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
-rw-r--r--lib/Expr/Parser.cpp7
1 files 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()));