Skip to content

Commit a20b5da

Browse files
Fix windows build.
1 parent 4cee34e commit a20b5da

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

mlir/lib/Dialect/Rock/Tuning/GridwiseGemmParams.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,14 @@ class ParamLookupTable {
141141
else if (it == relatives.begin())
142142
return relatives.front();
143143
else {
144-
auto [mismatchNext, _] =
144+
auto mismatchNext = target.end();
145+
std::tie(mismatchNext, std::ignore) =
145146
std::mismatch(target.begin(), target.end(), it->begin());
146-
auto [mismatchPrev, _] =
147+
148+
auto mismatchPrev = target.end();
149+
std::tie(mismatchPrev, std::ignore) =
147150
std::mismatch(target.begin(), target.end(), std::prev(it)->begin());
151+
148152
if (mismatchNext < mismatchPrev)
149153
return *std::prev(it);
150154
else

0 commit comments

Comments
 (0)