[llvm] [AMDGPU] Add constructor to VecSlices in LowerBufferFatPointers (PR #123658)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 20 10:14:33 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-amdgpu
Author: Krzysztof Drewniak (krzysz00)
<details>
<summary>Changes</summary>
Followup to #<!-- -->110572 to address buildbot failure at https://lab.llvm.org/buildbot/#/builders/108/builds/8346 .
---
Full diff: https://github.com/llvm/llvm-project/pull/123658.diff
1 Files Affected:
- (modified) llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp (+2)
``````````diff
diff --git a/llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp b/llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp
index 75a0c47f7c2773..ccb874e6a934e7 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp
@@ -640,6 +640,8 @@ class LegalizeBufferContentTypesVisitor
uint64_t Index = 0;
uint64_t Length = 0;
VecSlice() = delete;
+ // Needed for some Clangs
+ VecSlice(uint64_t Index, uint64_t Length) : Index(Index), Length(Length) {}
};
/// Return the [index, length] pairs into which `T` needs to be cut to form
/// legal buffer load or store operations. Clears `Slices`. Creates an empty
``````````
</details>
https://github.com/llvm/llvm-project/pull/123658
More information about the llvm-commits
mailing list