continued regex development...

llvm-svn: 109512
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: 6afe8b0a23365e692c68273198f81110cf315d8d
diff --git a/src/regex.cpp b/src/regex.cpp
index 59591e0..c84d43e 100644
--- a/src/regex.cpp
+++ b/src/regex.cpp
@@ -50,6 +50,10 @@
     case regex_constants::error_stack:
         return "There was insufficient memory to determine whether the regular "
                "expression could match the specified character sequence.";
+    case regex_constants::__re_err_grammar:
+        return "An invalid regex grammar has been requested.";
+    case regex_constants::__re_err_empty:
+        return "An empty regex is not allowed in the POSIX grammar.";
     default:
         break;
     }