From: Simon Pilgrim Date: Wed, 10 Jul 2019 10:45:09 +0000 (+0000) Subject: Fix const/non-const lambda return type warning. NFCI. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cc4f26f26869e4bd63517e07af721fc0131ae7b8;p=llvm Fix const/non-const lambda return type warning. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365613 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 09e1195e1fd..5ec3f190d34 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -18002,7 +18002,7 @@ static SDValue narrowInsertExtractVectorBinOp(SDNode *Extract, SDValue Index = Extract->getOperand(1); EVT VT = Extract->getValueType(0); - auto GetSubVector = [VT, Index](SDValue V) { + auto GetSubVector = [VT, Index](SDValue V) -> SDValue { if (V.getOpcode() != ISD::INSERT_SUBVECTOR || V.getOperand(1).getValueType() != VT || V.getOperand(2) != Index) return SDValue();