[spirv-writer] Call the Call expression generator.

This CL adds the missing call for the call expression.

Bug: tint:5
Change-Id: Ia046e2b57ebc56eaf0c3dc330d9f8e81763df8bc
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/20144
Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
dan sinclair 2020-04-22 13:55:25 +00:00
parent aa257c068f
commit 43f975e71f
1 changed files with 3 additions and 0 deletions

View File

@ -201,6 +201,9 @@ uint32_t Builder::GenerateExpression(ast::Expression* expr) {
if (expr->IsBinary()) {
return GenerateBinaryExpression(expr->AsBinary());
}
if (expr->IsCall()) {
return GenerateCallExpression(expr->AsCall());
}
if (expr->IsConstructor()) {
return GenerateConstructorExpression(expr->AsConstructor(), false);
}