[llvm] AMDGPU: Fix gcc build break (PR #161354)

Petar Avramovic via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 30 04:27:01 PDT 2025


https://github.com/petar-avramovic updated https://github.com/llvm/llvm-project/pull/161354

>From fccedeffbcd16551cdc187e58a7323246a63f73f Mon Sep 17 00:00:00 2001
From: Petar Avramovic <Petar.Avramovic at amd.com>
Date: Tue, 30 Sep 2025 13:20:52 +0200
Subject: [PATCH] AMDGPU: Fix gcc build break

---
 llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp b/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
index 7f08a4eef97c9..1535f2681480e 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
@@ -4268,7 +4268,10 @@ Register AMDGPUInstructionSelector::copyToVGPRIfSrcFolded(
 
 InstructionSelector::ComplexRendererFns
 AMDGPUInstructionSelector::selectIgnore(MachineOperand &Root) const {
-  return {{}};
+  // Don't render anything.
+  ComplexRendererFns Renderers;
+  Renderers.emplace();
+  return Renderers;
 }
 
 ///



More information about the llvm-commits mailing list