forked from OSchip/llvm-project
[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:
parent
23fc454f68
commit
856299594c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue