Skip to content

Commit a1c29df

Browse files
committed
[AMDGPU] Fix -Wunused-variable in AMDGPUAsmPrinter.cpp (NFC)
/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp:653:13: error: unused variable 'PGMRSrc3' [-Werror,-Wunused-variable] int64_t PGMRSrc3; ^ 1 error generated.
1 parent 291b415 commit a1c29df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ bool AMDGPUAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
650650
Twine(CurrentProgramInfo.TIdIGCompCount),
651651
false);
652652

653-
int64_t PGMRSrc3;
653+
[[maybe_unused]] int64_t PGMRSrc3;
654654
assert(STM.hasGFX90AInsts() ||
655655
(CurrentProgramInfo.ComputePGMRSrc3GFX90A->evaluateAsAbsolute(
656656
PGMRSrc3) &&

0 commit comments

Comments
 (0)