diff --git a/mlir/include/mlir/Analysis/Presburger/IntegerRelation.h b/mlir/include/mlir/Analysis/Presburger/IntegerRelation.h index fa29ac23af607..626b6fcae2f0c 100644 --- a/mlir/include/mlir/Analysis/Presburger/IntegerRelation.h +++ b/mlir/include/mlir/Analysis/Presburger/IntegerRelation.h @@ -917,7 +917,7 @@ class IntegerPolyhedron : public IntegerRelation { /// Constructs a relation with the specified number of dimensions and symbols /// and adds the given inequalities. explicit IntegerPolyhedron(const PresburgerSpace &space, - IntMatrix inequalities) + const IntMatrix &inequalities) : IntegerPolyhedron(space) { for (unsigned i = 0, e = inequalities.getNumRows(); i < e; i++) addInequality(inequalities.getRow(i)); @@ -927,7 +927,7 @@ class IntegerPolyhedron : public IntegerRelation { /// and adds the given inequalities, after normalizing row-wise to integer /// values. explicit IntegerPolyhedron(const PresburgerSpace &space, - FracMatrix inequalities) + const FracMatrix &inequalities) : IntegerPolyhedron(space) { IntMatrix ineqsNormalized = inequalities.normalizeRows(); for (unsigned i = 0, e = inequalities.getNumRows(); i < e; i++)