[llvm] r338760 - Unbreak build after r338758: specify lambda return type explicitly

Krzysztof Parzyszek via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 2 12:38:18 PDT 2018


Author: kparzysz
Date: Thu Aug  2 12:38:18 2018
New Revision: 338760

URL: http://llvm.org/viewvc/llvm-project?rev=338760&view=rev
Log:
Unbreak build after r338758: specify lambda return type explicitly

Modified:
    llvm/trunk/lib/Support/APInt.cpp

Modified: llvm/trunk/lib/Support/APInt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/APInt.cpp?rev=338760&r1=338759&r2=338760&view=diff
==============================================================================
--- llvm/trunk/lib/Support/APInt.cpp (original)
+++ llvm/trunk/lib/Support/APInt.cpp Thu Aug  2 12:38:18 2018
@@ -2781,7 +2781,7 @@ llvm::APIntOps::SolveQuadraticEquationWr
   APInt SqrB = B * B;
   bool PickLow;
 
-  auto RoundUp = [] (const APInt &V, const APInt &A) {
+  auto RoundUp = [] (const APInt &V, const APInt &A) -> APInt {
     assert(A.isStrictlyPositive());
     APInt T = V.abs().urem(A);
     if (T.isNullValue())




More information about the llvm-commits mailing list