[llvm] 49893fb - [AMDGPU] Fix -Wunused-variable in SIISelLowering.cpp (NFC)
Jie Fu via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 23 18:08:38 PDT 2023
Author: Jie Fu
Date: 2023-10-24T09:07:18+08:00
New Revision: 49893fbff367294913988dea01f8f4ceb418e922
URL: https://github.com/llvm/llvm-project/commit/49893fbff367294913988dea01f8f4ceb418e922
DIFF: https://github.com/llvm/llvm-project/commit/49893fbff367294913988dea01f8f4ceb418e922.diff
LOG: [AMDGPU] Fix -Wunused-variable in SIISelLowering.cpp (NFC)
/llvm-project/llvm/lib/Target/AMDGPU/SIISelLowering.cpp:11257:7: error: unused variable 'VT' [-Werror,-Wunused-variable]
EVT VT = N->getValueType(0);
^
1 error generated.
Added:
Modified:
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
index 337863289e25dfe..c97486437ed83f1 100644
--- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
@@ -11254,7 +11254,7 @@ static SDValue getDWordFromOffset(SelectionDAG &DAG, SDLoc SL, SDValue Src,
static SDValue matchPERM(SDNode *N, TargetLowering::DAGCombinerInfo &DCI) {
SelectionDAG &DAG = DCI.DAG;
- EVT VT = N->getValueType(0);
+ [[maybe_unused]] EVT VT = N->getValueType(0);
SmallVector<ByteProvider<SDValue>, 8> PermNodes;
// VT is known to be MVT::i32, so we need to provide 4 bytes.
More information about the llvm-commits
mailing list