summaryrefslogtreecommitdiff
path: root/gcc/c-convert.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-convert.c')
-rw-r--r--gcc/c-convert.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/c-convert.c b/gcc/c-convert.c
index 4fb680063ad..5349d7a77e8 100644
--- a/gcc/c-convert.c
+++ b/gcc/c-convert.c
@@ -86,6 +86,9 @@ convert (tree type, tree expr)
if (type == TREE_TYPE (expr))
return expr;
+ ret = targetm.convert_to_type (type, expr);
+ if (ret)
+ return ret;
STRIP_TYPE_NOPS (e);