Unreviewed. Attempt windows build fix after r242239.
authorsbarati@apple.com <sbarati@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Mar 2019 01:44:22 +0000 (01:44 +0000)
committersbarati@apple.com <sbarati@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Mar 2019 01:44:22 +0000 (01:44 +0000)
* runtime/CachedTypes.cpp:
(JSC::tagFromSourceCodeType):

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

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/CachedTypes.cpp

index 08859e6..b0bc049 100644 (file)
@@ -1,3 +1,10 @@
+2019-02-28  Saam barati  <sbarati@apple.com>
+
+        Unreviewed. Attempt windows build fix after r242239.
+
+        * runtime/CachedTypes.cpp:
+        (JSC::tagFromSourceCodeType):
+
 2019-02-28  Mark Lam  <mark.lam@apple.com>
 
         In cloop.rb, rename :int and :uint to :intptr and :uintptr.
index d19c2a5..690ee05 100644 (file)
@@ -1826,9 +1826,10 @@ static constexpr CachedCodeBlockTag tagFromSourceCodeType(SourceCodeType type)
     case SourceCodeType::ModuleType:
         return CachedModuleCodeBlockTag;
     case SourceCodeType::FunctionType:
-        ASSERT_NOT_REACHED();
-        return static_cast<CachedCodeBlockTag>(-1);
+        break;
     }
+    ASSERT_NOT_REACHED();
+    return static_cast<CachedCodeBlockTag>(-1);
 }
 
 template<>