diff --git a/mlir/lib/Analysis/Presburger/Simplex.cpp b/mlir/lib/Analysis/Presburger/Simplex.cpp index 45b1a26e79cf..500bfba58e18 100644 --- a/mlir/lib/Analysis/Presburger/Simplex.cpp +++ b/mlir/lib/Analysis/Presburger/Simplex.cpp @@ -1333,8 +1333,7 @@ MaybeOptimum Simplex::computeOptimum(Direction direction, SimplexRollbackScopeExit scopeExit(*this); unsigned conIndex = addRow(coeffs); unsigned row = con[conIndex].pos; - MaybeOptimum optimum = computeRowOptimum(direction, row); - return optimum; + return computeRowOptimum(direction, row); } MaybeOptimum Simplex::computeOptimum(Direction direction,