diff --git a/mlir/lib/Analysis/Presburger/IntegerRelation.cpp b/mlir/lib/Analysis/Presburger/IntegerRelation.cpp index 87e410cb46ce..b630db8c0f70 100644 --- a/mlir/lib/Analysis/Presburger/IntegerRelation.cpp +++ b/mlir/lib/Analysis/Presburger/IntegerRelation.cpp @@ -215,7 +215,7 @@ PresburgerRelation IntegerRelation::computeReprWithOnlyDivLocals() const { IntegerPolyhedron(PresburgerSpace::getSetSpace( /*numDims=*/copy.getNumVars() - numNonDivLocals))) .computeSymbolicIntegerLexMin(); - PresburgerSet result = + PresburgerRelation result = lexminResult.lexmin.getDomain().unionSet(lexminResult.unboundedDomain); // The result set might lie in the wrong space -- all its ids are dims.