[llvm] 1553b3d - AMDGPU: Fix gcc build break (#161354)

via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 30 05:01:15 PDT 2025


Author: Petar Avramovic
Date: 2025-09-30T14:01:08+02:00
New Revision: 1553b3de71112f7faf2c5d25227b322978bab9c0

URL: https://github.com/llvm/llvm-project/commit/1553b3de71112f7faf2c5d25227b322978bab9c0
DIFF: https://github.com/llvm/llvm-project/commit/1553b3de71112f7faf2c5d25227b322978bab9c0.diff

LOG: AMDGPU: Fix gcc build break (#161354)

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp

Removed: 
    


################################################################################
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