Windows build fix
authoraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Nov 2007 21:57:05 +0000 (21:57 +0000)
committeraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Nov 2007 21:57:05 +0000 (21:57 +0000)
        Removed some unreachable code (ironically, the code was some
        ASSERT_NOT_REACHED()s).

        * pcre/pcre_compile.cpp:
        (compile_branch):
        * pcre/pcre_exec.cpp:
        (match):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28201 268f45cc-cd09-0410-ab3c-d52691b4dbfc

JavaScriptCore/ChangeLog
JavaScriptCore/pcre/pcre_compile.cpp
JavaScriptCore/pcre/pcre_exec.cpp

index 6673c66..d8b9cbd 100644 (file)
@@ -1,3 +1,15 @@
+2007-11-29  Adam Roben  <aroben@apple.com>
+
+        Windows build fix
+
+        Removed some unreachable code (ironically, the code was some
+        ASSERT_NOT_REACHED()s).
+
+        * pcre/pcre_compile.cpp:
+        (compile_branch):
+        * pcre/pcre_exec.cpp:
+        (match):
+
 2007-11-29  Eric Seidel  <eric@webkit.org>
 
         Reviewed by Mark Rowe.
index 8e44257..be8fd21 100644 (file)
@@ -1864,7 +1864,6 @@ compile_branch(int options, int* brackets, uschar** codeptr,
     /* Control never reaches here by falling through, only by a goto for all the
      error states. Pass back the position in the pattern so that it can be displayed
      to the user for diagnosing the error. */
-    ASSERT_NOT_REACHED();
     
 FAILED:
     *ptrptr = ptr;
index 9192888..fa9a2dd 100644 (file)
@@ -922,7 +922,7 @@ RECURSE:
                     }
                     RRETURN_NO_MATCH;
                 }
-                ASSERT_NOT_REACHED();
+                /* Control never reaches here */
                 
                 /* Match a bit-mapped character class, possibly repeatedly. This op code is
                  used when all the characters in the class have values in the range 0-255,