aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>1999-01-06 10:51:30 -0800
committerRichard Henderson <rth@gcc.gnu.org>1999-01-06 10:51:30 -0800
commit44d22bef0af1c9df8d65748a7e5905ff22843f00 (patch)
treec593cdb03f6aad598c7d9296669c2bc5161058ee /gcc/expr.c
parentca54603f6a9b94cc240631068bbfd8bb4c8a7a88 (diff)
downloadgcc-44d22bef0af1c9df8d65748a7e5905ff22843f00.zip
gcc-44d22bef0af1c9df8d65748a7e5905ff22843f00.tar.gz
gcc-44d22bef0af1c9df8d65748a7e5905ff22843f00.tar.bz2
expr.c (expand_builtin): Use value_mode for the return mode.
* expr.c (expand_builtin) [case BUILT_IN_CONSTANT_P]: Use value_mode for the return mode. From-SVN: r24525
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;
}