[llvm] 7f90597 - [AMDGPU] Fix a warning
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 7 08:27:11 PDT 2022
Author: Kazu Hirata
Date: 2022-10-07T08:27:02-07:00
New Revision: 7f90597be6825392c0a7bc8bb8921097e638518c
URL: https://github.com/llvm/llvm-project/commit/7f90597be6825392c0a7bc8bb8921097e638518c
DIFF: https://github.com/llvm/llvm-project/commit/7f90597be6825392c0a7bc8bb8921097e638518c.diff
LOG: [AMDGPU] Fix a warning
This patch fixes:
llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp:800:17:
error: unused variable 'DST_IDX' [-Werror,-Wunused-variable]
Added:
Modified:
llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp b/llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp
index 7e11cd42c8066..9011b4bc692a9 100644
--- a/llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp
+++ b/llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp
@@ -808,6 +808,7 @@ bool AMDGPUDisassembler::isMacDPP(MCInst &MI) const {
assert(Desc.getOperandConstraint(
AMDGPU::getNamedOperandIdx(Opcode, AMDGPU::OpName::src2),
MCOI::OperandConstraint::TIED_TO) == DST_IDX);
+ (void)DST_IDX;
return true;
}
More information about the llvm-commits
mailing list