Skip to content

Commit 4e6721b

Browse files
committed
[llvm] Fix an unused variable warning
1 parent bbabf4e commit 4e6721b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -2438,8 +2438,8 @@ bool SIInsertWaitcnts::runOnMachineFunction(MachineFunction &MF) {
24382438
Limits.BvhcntMax = AMDGPU::getBvhcntBitMask(IV);
24392439
Limits.KmcntMax = AMDGPU::getKmcntBitMask(IV);
24402440

2441-
unsigned NumVGPRsMax = ST->getAddressableNumVGPRs();
2442-
unsigned NumSGPRsMax = ST->getAddressableNumSGPRs();
2441+
[[maybe_unused]] unsigned NumVGPRsMax = ST->getAddressableNumVGPRs();
2442+
[[maybe_unused]] unsigned NumSGPRsMax = ST->getAddressableNumSGPRs();
24432443
assert(NumVGPRsMax <= SQ_MAX_PGM_VGPRS);
24442444
assert(NumSGPRsMax <= SQ_MAX_PGM_SGPRS);
24452445

0 commit comments

Comments
 (0)