[llvm] [NFC][AMDGPU] Fix unused-variable warning (PR #81040)

Pranav Kant via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 7 13:15:37 PST 2024


https://github.com/pranavk created https://github.com/llvm/llvm-project/pull/81040

None

>From 7839c8366d9ead665f71f2f1758e499588a4dd82 Mon Sep 17 00:00:00 2001
From: Pranav Kant <prka at google.com>
Date: Wed, 7 Feb 2024 21:15:09 +0000
Subject: [PATCH] [NFC][AMDGPU] Fix unused-variable warning

---
 llvm/lib/Target/AMDGPU/SIISelLowering.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
index 4faf808775112..a64a9e608f217 100644
--- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
@@ -12016,7 +12016,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