forked from OSchip/llvm-project
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:
parent
fce5a567c6
commit
c5029023fb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue