[PR] ReorderAlgorithm.cpp: Fix iterator types

Summary:
The clang 12 doesn't want to build this place due to unrelated
types of iterator element and std vector.

Vladislav Khmelevsky,
Advanced Software Technology Lab, Huawei

(cherry picked from FBD30821177)
This commit is contained in:
Vladislav Khmelevsky 2021-09-06 20:30:22 +03:00 committed by Maksim Panchenko
parent 23fc454f68
commit 856299594c
1 changed files with 1 additions and 1 deletions

View File

@ -434,7 +434,7 @@ void TSPReorderAlgorithm::reorderBasicBlocks(
std::vector<std::vector<int64_t>> DP;
DP.resize(1 << N);
for (std::vector<long> &Elmt : DP) {
for (std::vector<int64_t> &Elmt : DP) {
Elmt.resize(N, -1);
}
// Start with the entry basic block being allocated with cost zero