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

via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 7 13:21:05 PST 2024


Author: Pranav Kant
Date: 2024-02-07T13:21:01-08:00
New Revision: c95693c74601521463e12ff358fed6fb9ee736b9

URL: https://github.com/llvm/llvm-project/commit/c95693c74601521463e12ff358fed6fb9ee736b9
DIFF: https://github.com/llvm/llvm-project/commit/c95693c74601521463e12ff358fed6fb9ee736b9.diff

LOG: [NFC][AMDGPU] Fix unused-variable warning (#81040)

This is only used in assert statement.

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 4faf8087751124..a64a9e608f2173 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