[llvm-branch-commits] [llvm] 7121173 - [X86] Explicitly use SDValue instead of auto. NFCI.

Simon Pilgrim via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Dec 15 09:33:13 PST 2020


Author: Simon Pilgrim
Date: 2020-12-15T17:27:25Z
New Revision: 712117338ad81e2c661a5a658b795eb1993b841e

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

LOG: [X86] Explicitly use SDValue instead of auto. NFCI.

Fix static analyzer warning about not using a SDValue&

Added: 
    

Modified: 
    llvm/lib/Target/X86/X86ISelLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index bd106f336098..40717e85e27f 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -44477,8 +44477,8 @@ static SDValue detectAVGPattern(SDValue In, EVT VT, SelectionDAG &DAG,
   };
 
   // Check if each element of the vector is right-shifted by one.
-  auto LHS = In.getOperand(0);
-  auto RHS = In.getOperand(1);
+  SDValue LHS = In.getOperand(0);
+  SDValue RHS = In.getOperand(1);
   if (!IsConstVectorInRange(RHS, 1, 1))
     return SDValue();
   if (LHS.getOpcode() != ISD::ADD)


        


More information about the llvm-branch-commits mailing list