[llvm] [AMDGPU] Add constructor to VecSlices in LowerBufferFatPointers (PR #123658)

Krzysztof Drewniak via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 20 10:13:21 PST 2025


https://github.com/krzysz00 created https://github.com/llvm/llvm-project/pull/123658

Followup to #110572 to address buildbot failure at https://lab.llvm.org/buildbot/#/builders/108/builds/8346 .

>From 913ea627ef20f9e92fa6c5778f1c2f95a4193866 Mon Sep 17 00:00:00 2001
From: Krzysztof Drewniak <Krzysztof.Drewniak at amd.com>
Date: Mon, 20 Jan 2025 18:11:55 +0000
Subject: [PATCH] [AMDGPU] Add constructor to VecSlices in
 LowerBufferFatPointers

Followup to #110572 to address buildbot failure at
https://lab.llvm.org/buildbot/#/builders/108/builds/8346 .
---
 llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp | 2 ++
 1 file changed, 2 insertions(+)

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



More information about the llvm-commits mailing list