[llvm] b435da0 - [amdgpu][nfc] Fix build with a certan Clang version
Dmitri Gribenko via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 27 08:29:43 PDT 2022
Author: Dmitri Gribenko
Date: 2022-07-27T17:29:36+02:00
New Revision: b435da027d7774c24cdb8c88d09f6b771e07fb14
URL: https://github.com/llvm/llvm-project/commit/b435da027d7774c24cdb8c88d09f6b771e07fb14
DIFF: https://github.com/llvm/llvm-project/commit/b435da027d7774c24cdb8c88d09f6b771e07fb14.diff
LOG: [amdgpu][nfc] Fix build with a certan Clang version
It errors out in the Bazel CI:
AMDGPULowerModuleLDSPass.cpp:384:12: error: chosen constructor is
explicit in copy-initialization
return {SGV, std::move(Map)};
Reviewed By: rupprecht
Differential Revision: https://reviews.llvm.org/D130623
Added:
Modified:
llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp b/llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
index 56a9a30bc59ae..43d7b99b6cf58 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
@@ -381,7 +381,7 @@ class AMDGPULowerModuleLDS : public ModulePass {
}
}
assert(Map.size() == LDSVarsToTransform.size());
- return {SGV, std::move(Map)};
+ return std::make_tuple(SGV, std::move(Map));
}
template <typename PredicateTy>
More information about the llvm-commits
mailing list