diff --git a/src/reader/spirv/function.cc b/src/reader/spirv/function.cc index 33b6e4d08f..9e1d8ef687 100644 --- a/src/reader/spirv/function.cc +++ b/src/reader/spirv/function.cc @@ -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(target_ty, operand(0)); - cast->set_result_type(target_ty); - return cast; + return {target_ty, + std::make_unique(target_ty, operand(0).expr)}; } // builtin readonly function