Skip to content

Commit ccf5d62

Browse files
[AMDGPU] Fix a warning
This patch fixes: llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp:1031:17: error: unused variable 'F' [-Werror,-Wunused-variable]
1 parent 5be02d7 commit ccf5d62

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -1028,8 +1028,7 @@ class AMDGPULowerModuleLDS {
10281028
}
10291029
// Also erase those special LDS variables from indirect_access.
10301030
for (auto &K : LDSUsesInfo.indirect_access) {
1031-
Function *F = K.first;
1032-
assert(isKernelLDS(F));
1031+
assert(isKernelLDS(K.first));
10331032
for (GlobalVariable *GV : K.second) {
10341033
if (isNamedBarrier(*GV))
10351034
K.second.erase(GV);

0 commit comments

Comments
 (0)