Fix const/non-const lambda return type warning. NFCI.

llvm-svn: 365613
This commit is contained in:
Simon Pilgrim 2019-07-10 10:45:09 +00:00
parent 988925c127
commit bb1167a3a1
1 changed files with 1 additions and 1 deletions

View File

@ -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();