[llvm] [AMDGPU] fix build error unused-var (PR #115199)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 6 11:32:28 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-amdgpu
Author: Gang Chen (cmc-rep)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/115199.diff
1 Files Affected:
- (modified) llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp (+1-1)
``````````diff
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp b/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp
index f52476464e05e6..ac11b11ef97ae5 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp
@@ -103,7 +103,7 @@ unsigned AMDGPUMachineFunction::allocateLDSGlobal(const DataLayout &DL,
unsigned Offset;
if (GV.getAddressSpace() == AMDGPUAS::LOCAL_ADDRESS) {
- if (TargetExtType *TTy = AMDGPU::isNamedBarrier(GV)) {
+ if (AMDGPU::isNamedBarrier(GV)) {
std::optional<unsigned> BarAddr = getLDSAbsoluteAddress(GV);
if (!BarAddr)
llvm_unreachable("named barrier should have an assigned address");
``````````
</details>
https://github.com/llvm/llvm-project/pull/115199
More information about the llvm-commits
mailing list