OSDN Git Service

[X86] Unbreak the build.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 26 Jan 2018 20:16:43 +0000 (20:16 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 26 Jan 2018 20:16:43 +0000 (20:16 +0000)
X86ISelLowering.cpp:34130:5: error: return type 'llvm::SDValue' must
match previous return type 'const llvm::SDValue' when lambda expression
has unspecified explicit return type

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@323557 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index 18f1431..58246c9 100644 (file)
@@ -34122,7 +34122,8 @@ static SDValue detectSSatPattern(SDValue In, EVT VT) {
   unsigned NumSrcBits = In.getScalarValueSizeInBits();
   assert(NumSrcBits > NumDstBits && "Unexpected types for truncate operation");
 
-  auto MatchMinMax = [](SDValue V, unsigned Opcode, const APInt &Limit) {
+  auto MatchMinMax = [](SDValue V, unsigned Opcode,
+                        const APInt &Limit) -> SDValue {
     APInt C;
     if (V.getOpcode() == Opcode &&
         ISD::isConstantSplatVector(V.getOperand(1).getNode(), C) && C == Limit)