Fix building with GCC 12:

Fixes: https://bugs.llvm.org/show_bug.cgi?id=52380

Differential Revision: https://reviews.llvm.org/D112990
This commit is contained in:
Martin Liska 2021-11-02 09:34:09 +01:00
parent fce5a567c6
commit c5029023fb
1 changed files with 1 additions and 1 deletions

View File

@ -2065,7 +2065,7 @@ SILoadStoreOptimizer::collectMergeableInsts(
// adjacent to each other in the list, which will make it easier to find
// matches.
MergeList.sort(
[] (const CombineInfo &A, CombineInfo &B) {
[] (const CombineInfo &A, const CombineInfo &B) {
return A.Offset < B.Offset;
});
++I;