aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 4967642..48f726a 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -9031,7 +9031,7 @@ expand_builtin (exp, target, subtarget, mode, ignore)
tmp = expand_expr (arg, NULL_RTX, VOIDmode, 0);
tmp = gen_rtx_CONSTANT_P_RTX (ptr_mode, tmp);
tmp = gen_rtx_CONST (ptr_mode, tmp);
- tmp = convert_to_mode (mode, tmp, 0);
+ tmp = convert_to_mode (value_mode, tmp, 0);
return tmp;
}