aboutsummaryrefslogtreecommitdiff
path: root/gcc/optabs-tree.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/optabs-tree.cc')
-rw-r--r--gcc/optabs-tree.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/optabs-tree.cc b/gcc/optabs-tree.cc
index 6dfe8ee..9308a6d 100644
--- a/gcc/optabs-tree.cc
+++ b/gcc/optabs-tree.cc
@@ -82,6 +82,8 @@ optab_for_tree_code (enum tree_code code, const_tree type,
return unknown_optab;
/* FALLTHRU */
case RDIV_EXPR:
+ gcc_assert (FLOAT_TYPE_P (type));
+ /* FALLTHRU */
case TRUNC_DIV_EXPR:
case EXACT_DIV_EXPR:
if (TYPE_SATURATING (type))