aboutsummaryrefslogtreecommitdiff
path: root/gcc/lambda-mat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/lambda-mat.c')
-rw-r--r--gcc/lambda-mat.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/lambda-mat.c b/gcc/lambda-mat.c
index 8aa3c12..8de0e98 100644
--- a/gcc/lambda-mat.c
+++ b/gcc/lambda-mat.c
@@ -401,9 +401,8 @@ lambda_matrix_inverse_hard (lambda_matrix mat, lambda_matrix inv, int n)
row = temp[j];
diagonal = row[j];
- /* If the matrix is singular, abort. */
- if (diagonal == 0)
- abort ();
+ /* The matrix must not be singular. */
+ gcc_assert (diagonal);
determinant = determinant * diagonal;