Skip to content

Commit c502902

Browse files
committed
Fix building with GCC 12:
Fixes: https://bugs.llvm.org/show_bug.cgi?id=52380 Differential Revision: https://reviews.llvm.org/D112990
1 parent fce5a56 commit c502902

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
@@ -2065,7 +2065,7 @@ SILoadStoreOptimizer::collectMergeableInsts(
20652065
// adjacent to each other in the list, which will make it easier to find
20662066
// matches.
20672067
MergeList.sort(
2068-
[] (const CombineInfo &A, CombineInfo &B) {
2068+
[] (const CombineInfo &A, const CombineInfo &B) {
20692069
return A.Offset < B.Offset;
20702070
});
20712071
++I;

0 commit comments

Comments
 (0)