reader/spiv: Fix typo in entry-point IO sorting

We were sorting the inputs twice.
Also make use the UniqueVector::operator std::vector() to simplify the code a little.

Doesn't appear to change any tests.
Just spotted while looking through code.

Change-Id: Iddb433b9c8c429f32b40a10cf466c712fde7a317
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/63701
Auto-Submit: Ben Clayton <bclayton@google.com>
Commit-Queue: David Neto <dneto@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
Ben Clayton 2021-09-10 15:25:13 +00:00 committed by Tint LUCI CQ
parent ebab7d2f7a
commit 2ebcb93cb3
1 changed files with 3 additions and 3 deletions

View File

@ -902,10 +902,10 @@ bool ParserImpl::RegisterEntryPoints() {
}
}
// Save the lists, in ID-sorted order.
std::vector<uint32_t> sorted_inputs(inputs.begin(), inputs.end());
std::sort(sorted_inputs.begin(), sorted_inputs.end());
std::vector<uint32_t> sorted_outputs(outputs.begin(), outputs.end());
std::vector<uint32_t> sorted_inputs(inputs);
std::sort(sorted_inputs.begin(), sorted_inputs.end());
std::vector<uint32_t> sorted_outputs(outputs);
std::sort(sorted_outputs.begin(), sorted_outputs.end());
const auto ast_stage = enum_converter_.ToPipelineStage(stage);
GridSize wgsize;