Title: [249664] trunk/Source/WebCore
Revision
249664
Author
sbar...@apple.com
Date
2019-09-09 13:54:46 -0700 (Mon, 09 Sep 2019)

Log Message

Unreviewed follow up to r249630. We need padding for ADDRESS32 CPUs to allow replaceWith to work on the intended types.

* Modules/webgpu/WHLSL/AST/WHLSLIndexExpression.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (249663 => 249664)


--- trunk/Source/WebCore/ChangeLog	2019-09-09 20:36:13 UTC (rev 249663)
+++ trunk/Source/WebCore/ChangeLog	2019-09-09 20:54:46 UTC (rev 249664)
@@ -1,3 +1,9 @@
+2019-09-09  Saam Barati  <sbar...@apple.com>
+
+        Unreviewed follow up to r249630. We need padding for ADDRESS32 CPUs to allow replaceWith to work on the intended types.
+
+        * Modules/webgpu/WHLSL/AST/WHLSLIndexExpression.h:
+
 2019-09-09  Zalan Bujtas  <za...@apple.com>
 
         [LFC][TFC] Introduce cell spacing.

Modified: trunk/Source/WebCore/Modules/webgpu/WHLSL/AST/WHLSLIndexExpression.h (249663 => 249664)


--- trunk/Source/WebCore/Modules/webgpu/WHLSL/AST/WHLSLIndexExpression.h	2019-09-09 20:36:13 UTC (rev 249663)
+++ trunk/Source/WebCore/Modules/webgpu/WHLSL/AST/WHLSLIndexExpression.h	2019-09-09 20:54:46 UTC (rev 249664)
@@ -45,6 +45,9 @@
         : PropertyAccessExpression(location, Kind::Index, WTFMove(base))
         , m_index(WTFMove(index))
     {
+#if CPU(ADDRESS32)
+        UNUSED_PARAM(m_padding);
+#endif
     }
 
     ~IndexExpression() = default;
@@ -58,6 +61,10 @@
 
 private:
     UniqueRef<_expression_> m_index;
+#if CPU(ADDRESS32)
+    // This is used to allow for replaceWith into a bigger type.
+    char m_padding[4];
+#endif
 };
 
 } // namespace AST
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to