[spirv-reader] Fix build

Fix bad merge around emission of OpBitcast.

Change-Id: Iacc5ba1c3940745e4b2c46878bbc416397ec555f
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/20047
Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
David Neto 2020-04-20 22:09:26 +00:00
parent 652a4b9871
commit 90bbafa125
1 changed files with 2 additions and 3 deletions

View File

@ -427,9 +427,8 @@ TypedExpression FunctionEmitter::MaybeEmitCombinatorialValue(
if (inst.opcode() == SpvOpBitcast) {
auto target_ty = parser_impl_.ConvertType(inst.type_id());
auto cast = std::make_unique<ast::AsExpression>(target_ty, operand(0));
cast->set_result_type(target_ty);
return cast;
return {target_ty,
std::make_unique<ast::AsExpression>(target_ty, operand(0).expr)};
}
// builtin readonly function