[PATCH] D112990: Fix building with GCC 12
Martin Liška via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 2 01:37:06 PDT 2021
marxin created this revision.
Herald added subscribers: foad, kerbowa, hiraditya, nhaehnle, jvesely, arsenm.
marxin requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Fixes: https://bugs.llvm.org/show_bug.cgi?id=52380
https://reviews.llvm.org/D112990
Files:
llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
Index: llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
===================================================================
--- llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
+++ llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
@@ -2065,7 +2065,7 @@
// 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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112990.383996.patch
Type: text/x-patch
Size: 539 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211102/03934966/attachment.bin>
More information about the llvm-commits
mailing list