[writer] add a return to convert_image_format_to_spv

This CL adds a return to convert_image_format_to_spv function to stop
clang from failing with this error: "control reaches end of non-void
function." because we haven't covered all the enums in the switch.

Change-Id: Ibcb02ff52ca4c6e597a36f5c3d57e41df9e7b02a
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/28061
Reviewed-by: David Neto <dneto@google.com>
Commit-Queue: David Neto <dneto@google.com>
This commit is contained in:
Sarah Mashayekhi 2020-09-03 17:17:37 +00:00 committed by Commit Bot service account
parent e7ec7f1689
commit 75c492a0cc
1 changed files with 1 additions and 0 deletions

View File

@ -2316,6 +2316,7 @@ SpvImageFormat Builder::convert_image_format_to_spv(
case ast::type::ImageFormat::kRgba32Float: case ast::type::ImageFormat::kRgba32Float:
return SpvImageFormatRgba32f; return SpvImageFormatRgba32f;
} }
return SpvImageFormatUnknown;
} }
} // namespace spirv } // namespace spirv