diff --git a/src/reader/spirv/function.cc b/src/reader/spirv/function.cc index db9625cee2..5ea523ccee 100644 --- a/src/reader/spirv/function.cc +++ b/src/reader/spirv/function.cc @@ -3092,9 +3092,9 @@ TypedExpression FunctionEmitter::MakeCompositeExtract( TypedExpression current_expr(MakeOperand(inst, 0)); auto make_index = [this](uint32_t literal) { - ast::type::U32 u32; + auto* type = create(); return create( - create(&u32, literal)); + create(type, literal)); }; const auto composite = inst.GetSingleWordInOperand(0);