[llvm] [AMDGPU][LowerModuleLDS] Handle non-dynlds zero sized type (PR #84742)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 11 03:51:09 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff d4569d42b5cb8ba076f0115d3d21d89f68e6ce9d de505632d2ccbda8d79263d661733178725598d5 -- llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp b/llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
index 621a1fe20e..a03f1fc273 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
@@ -1399,8 +1399,7 @@ private:
for (GlobalVariable *GV : Sorted) {
unsigned Size = DL.getTypeAllocSize(GV->getValueType());
- OptimizedStructLayoutField F(GV,
- Size ? Size : 1,
+ OptimizedStructLayoutField F(GV, Size ? Size : 1,
AMDGPU::getAlign(DL, GV));
LayoutFields.emplace_back(F);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/84742
More information about the llvm-commits
mailing list