Skip to content

Commit 4a6d13b

Browse files
committed
Remove unused variable to fix '[AMDGPU] modify named barrier builtins and intrinsics (#114550)'
#114550 caused a buildbot breakage (https://lab.llvm.org/buildbot/#/builders/66/builds/5853) because of an unused variable. This patch attempts to fix forward: /home/b/sanitizer-x86_64-linux/build/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp:106:24: error: variable 'TTy' set but not used [-Werror,-Wunused-but-set-variable] 106 | if (TargetExtType *TTy = AMDGPU::isNamedBarrier(GV)) { | ^
1 parent e9bafa3 commit 4a6d13b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ unsigned AMDGPUMachineFunction::allocateLDSGlobal(const DataLayout &DL,
103103

104104
unsigned Offset;
105105
if (GV.getAddressSpace() == AMDGPUAS::LOCAL_ADDRESS) {
106-
if (TargetExtType *TTy = AMDGPU::isNamedBarrier(GV)) {
106+
if (AMDGPU::isNamedBarrier(GV)) {
107107
std::optional<unsigned> BarAddr = getLDSAbsoluteAddress(GV);
108108
if (!BarAddr)
109109
llvm_unreachable("named barrier should have an assigned address");

0 commit comments

Comments
 (0)