aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/pt.c
diff options
context:
space:
mode:
authorJohn David Anglin <dave@hiauly1.hia.nrc.ca>2001-06-06 17:10:52 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2001-06-06 17:10:52 +0000
commitacf97e0b7570b17a80d9b85d52a7cae9314a8f16 (patch)
tree8720a33770a18fc19865846a2f4da64d2589f425 /gcc/cp/pt.c
parentef6257cdab743c387b512bfaec9d8fa7db79d6c8 (diff)
downloadgcc-acf97e0b7570b17a80d9b85d52a7cae9314a8f16.zip
gcc-acf97e0b7570b17a80d9b85d52a7cae9314a8f16.tar.gz
gcc-acf97e0b7570b17a80d9b85d52a7cae9314a8f16.tar.bz2
call.c (convert_default_arg): Use INTEGRAL_TYPE_P.
* call.c (convert_default_arg): Use INTEGRAL_TYPE_P. (build_over_call): Likewise. * decl.c (grokparms): Likewise. * pt.c (tsubst_decl): Likewise. * typeck.c (convert_arguments): Likewise. From-SVN: r42947
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r--gcc/cp/pt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index b82ac02..1c9e659 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -5883,8 +5883,7 @@ tsubst_decl (t, args, type)
DECL_CONTEXT (r) = NULL_TREE;
if (PROMOTE_PROTOTYPES
- && (TREE_CODE (type) == INTEGER_TYPE
- || TREE_CODE (type) == ENUMERAL_TYPE)
+ && INTEGRAL_TYPE_P (type)
&& TYPE_PRECISION (type) < TYPE_PRECISION (integer_type_node))
DECL_ARG_TYPE (r) = integer_type_node;
if (TREE_CHAIN (t))