Unreviewed. Debug build fix after r248730.
authorsbarati@apple.com <sbarati@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 15 Aug 2019 20:13:14 +0000 (20:13 +0000)
committersbarati@apple.com <sbarati@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 15 Aug 2019 20:13:14 +0000 (20:13 +0000)
* Modules/webgpu/WHLSL/Metal/WHLSLNativeFunctionWriter.cpp:
(WebCore::WHLSL::Metal::inlineNativeFunction):

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

Source/WebCore/ChangeLog
Source/WebCore/Modules/webgpu/WHLSL/Metal/WHLSLNativeFunctionWriter.cpp

index 2f0b4f4..e87fdb5 100644 (file)
@@ -1,3 +1,10 @@
+2019-08-15  Saam Barati  <sbarati@apple.com>
+
+        Unreviewed. Debug build fix after r248730.
+
+        * Modules/webgpu/WHLSL/Metal/WHLSLNativeFunctionWriter.cpp:
+        (WebCore::WHLSL::Metal::inlineNativeFunction):
+
 2019-08-15  Devin Rousso  <drousso@apple.com>
 
         Web Inspector: support `console.screenshot` with detached <canvas>
index 54946a0..5945c97 100644 (file)
@@ -253,7 +253,7 @@ void inlineNativeFunction(StringBuilder& stringBuilder, AST::NativeFunctionDecla
         auto& typeReference = downcast<AST::TypeReference>(*nativeFunctionDeclaration.parameters()[0]->type());
         auto& vectorType = downcast<AST::NativeTypeDeclaration>(downcast<AST::TypeReference>(downcast<AST::TypeDefinition>(typeReference.resolvedType()).type()).resolvedType());
         ASSERT(vectorType.name() == "vector");
-        ASSERT(matrixType.typeArguments().size() == 2);
+        ASSERT(vectorType.typeArguments().size() == 2);
         return WTF::get<AST::ConstantExpression>(vectorType.typeArguments()[1]).integerLiteral().value();
     };
     auto matrixDimension = [&] (unsigned typeArgumentIndex) -> unsigned {