Unreviewed, one last try at fixing the windows build before rollout.
authorkeith_miller@apple.com <keith_miller@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Mar 2018 20:19:47 +0000 (20:19 +0000)
committerkeith_miller@apple.com <keith_miller@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Mar 2018 20:19:47 +0000 (20:19 +0000)
* jit/CCallHelpers.h:
(JSC::CCallHelpers::clampArrayToSize):

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

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/jit/CCallHelpers.h

index 13a19c6..5a872e4 100644 (file)
@@ -1,3 +1,10 @@
+2018-03-08  Keith Miller  <keith_miller@apple.com>
+
+        Unreviewed, one last try at fixing the windows build before rollout.
+
+        * jit/CCallHelpers.h:
+        (JSC::CCallHelpers::clampArrayToSize):
+
 2018-03-08  Yusuke Suzuki  <utatane.tea@gmail.com>
 
         [JSC] Optimize inherits<T> if T is final type
index 924b7c7..e94d2b4 100644 (file)
@@ -253,6 +253,10 @@ private:
     {
         static_assert(TargetSize <= sourceArray.size(), "TargetSize is bigger than source.size()");
         RELEASE_ASSERT(TargetSize <= InfoTypeForReg<RegType>::numberOfRegisters);
+#if COMPILER(MSVC)
+#pragma warning(push)
+#pragma warning(disable: 4701)
+#endif
         std::array<RegType, TargetSize> result;
 
         for (unsigned i = 0; i < TargetSize; i++) {
@@ -261,6 +265,9 @@ private:
         }
 
         return result;
+#if COMPILER(MSVC)
+#pragma warning(pop)
+#endif
     }
 
     template<typename ArgType>