Skip to content

Commit 9e084f4

Browse files
marxintstellar
authored andcommitted
Fix building with GCC 12:
Fixes: https://bugs.llvm.org/show_bug.cgi?id=52380 Differential Revision: https://reviews.llvm.org/D112990 (cherry picked from commit c502902)
1 parent d5159b9 commit 9e084f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2048,7 +2048,7 @@ SILoadStoreOptimizer::collectMergeableInsts(
20482048
// adjacent to each other in the list, which will make it easier to find
20492049
// matches.
20502050
MergeList.sort(
2051-
[] (const CombineInfo &A, CombineInfo &B) {
2051+
[] (const CombineInfo &A, const CombineInfo &B) {
20522052
return A.Offset < B.Offset;
20532053
});
20542054
++I;

0 commit comments

Comments
 (0)