Skip to content

Commit d9a1f8a

Browse files
[AMDGPU] Fix a warning
This patch fixes: llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp:1139:17: error: unused variable 'Func' [-Werror,-Wunused-variable]
1 parent 07e2300 commit d9a1f8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,6 +1139,7 @@ struct AAAMDWavesPerEU : public AAAMDSizeRangeAttribute {
11391139
Function *Func = getAssociatedFunction();
11401140
LLVM_DEBUG(dbgs() << '[' << getName() << "] Call " << Caller->getName()
11411141
<< "->" << Func->getName() << '\n');
1142+
(void)Func;
11421143

11431144
const auto *CallerAA = A.getAAFor<AAAMDWavesPerEU>(
11441145
*this, IRPosition::function(*Caller), DepClassTy::REQUIRED);

0 commit comments

Comments
 (0)