[llvm] 0fe6649 - [X86] Fix -Wunused-lambda-capture

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed May 12 10:34:40 PDT 2021


Author: Fangrui Song
Date: 2021-05-12T10:34:32-07:00
New Revision: 0fe6649bc5b1824e87e418b2b18f61c1ed1025ce

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

LOG: [X86] Fix -Wunused-lambda-capture

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 01d6a3c369e5..27de4fa57869 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -49707,7 +49707,7 @@ static SDValue combineConcatVectorOps(const SDLoc &DL, MVT VT,
       // Special case: SHL/SRL AVX1 V4i64 by 32-bits can lower as a shuffle.
       // TODO: Move this to LowerScalarImmediateShift?
       if (VT == MVT::v4i64 && !Subtarget.hasInt256() &&
-          llvm::all_of(Ops, [Op0](SDValue Op) {
+          llvm::all_of(Ops, [](SDValue Op) {
             return Op.getConstantOperandAPInt(1) == 32;
           })) {
         SDValue Res = DAG.getBitcast(MVT::v8i32, ConcatSubOperand(VT, Ops, 0));


        


More information about the llvm-commits mailing list