diff --git a/src/reader/spirv/parser_impl.cc b/src/reader/spirv/parser_impl.cc index bec3e4aeed..588cba38a7 100644 --- a/src/reader/spirv/parser_impl.cc +++ b/src/reader/spirv/parser_impl.cc @@ -902,10 +902,10 @@ bool ParserImpl::RegisterEntryPoints() { } } // Save the lists, in ID-sorted order. - std::vector sorted_inputs(inputs.begin(), inputs.end()); - std::sort(sorted_inputs.begin(), sorted_inputs.end()); - std::vector sorted_outputs(outputs.begin(), outputs.end()); + std::vector sorted_inputs(inputs); std::sort(sorted_inputs.begin(), sorted_inputs.end()); + std::vector sorted_outputs(outputs); + std::sort(sorted_outputs.begin(), sorted_outputs.end()); const auto ast_stage = enum_converter_.ToPipelineStage(stage); GridSize wgsize;