Skip to content

Commit

Permalink
Fix an -Wunused-variable warning in release build, NFC
Browse files Browse the repository at this point in the history
  • Loading branch information
hokein committed Dec 7, 2022
1 parent b723d5a commit 50daddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
Expand Up @@ -4835,7 +4835,7 @@ static void packImage16bitOpsToDwords(MachineIRBuilder &B, MachineInstr &MI,
static void convertImageAddrToPacked(MachineIRBuilder &B, MachineInstr &MI,
int DimIdx, int NumVAddrs) {
const LLT S32 = LLT::scalar(32);

(void)S32;
SmallVector<Register, 8> AddrRegs;
for (int I = 0; I != NumVAddrs; ++I) {
MachineOperand &SrcOp = MI.getOperand(DimIdx + I);
Expand Down

0 comments on commit 50daddf

Please sign in to comment.