Skip to content

Commit c48aa78

Browse files
authored
Add missing declarations of explicit template instantiations. (#86591)
Found with `-Wundefined-func-template`.
1 parent 366592b commit c48aa78

File tree

1 file changed

+3
-0
lines changed
  • mlir/include/mlir/Analysis/Presburger

1 file changed

+3
-0
lines changed

mlir/include/mlir/Analysis/Presburger/Matrix.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,9 @@ class Matrix {
244244
SmallVector<T, 16> data;
245245
};
246246

247+
extern template class Matrix<MPInt>;
248+
extern template class Matrix<Fraction>;
249+
247250
// An inherited class for integer matrices, with no new data attributes.
248251
// This is only used for the matrix-related methods which apply only
249252
// to integers (hermite normal form computation and row normalisation).

0 commit comments

Comments
 (0)