[PATCH] D130623: [amdgpu][nfc] Fix build with a certan Clang version

Dmitri Gribenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 27 04:20:00 PDT 2022


gribozavr created this revision.
Herald added subscribers: kosarev, jsilvanus, foad, kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl, arsenm.
Herald added a project: All.
gribozavr requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

It errors out in the Bazel CI:

AMDGPULowerModuleLDSPass.cpp:384:12: error: chosen constructor is
explicit in copy-initialization

  return {SGV, std::move(Map)};


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D130623

Files:
  llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp


Index: llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
===================================================================
--- llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
+++ llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
@@ -381,7 +381,7 @@
       }
     }
     assert(Map.size() == LDSVarsToTransform.size());
-    return {SGV, std::move(Map)};
+    return std::make_tuple(SGV, std::move(Map));
   }
 
   template <typename PredicateTy>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130623.448000.patch
Type: text/x-patch
Size: 456 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220727/3d53c5d9/attachment.bin>


More information about the llvm-commits mailing list