aboutsummaryrefslogtreecommitdiff
path: root/gcc/builtins.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2002-01-26 14:47:12 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2002-01-26 14:47:12 +0000
commit93051e0f933b81a222c70ac868a15e12160c7c29 (patch)
tree1c2171c2165c9a5758cef68edfa43d4e2b938b0e /gcc/builtins.c
parent2198265a72b95b7f187536f8c521be0cf7c6a4a4 (diff)
downloadgcc-93051e0f933b81a222c70ac868a15e12160c7c29.zip
gcc-93051e0f933b81a222c70ac868a15e12160c7c29.tar.gz
gcc-93051e0f933b81a222c70ac868a15e12160c7c29.tar.bz2
builtins.c (expand_builtin_strncat): Remove redundant check for INTEGER_CST.
* builtins.c (expand_builtin_strncat): Remove redundant check for INTEGER_CST. From-SVN: r49246
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r--gcc/builtins.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c
index 0747806..e3adb05 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -2608,8 +2608,7 @@ expand_builtin_strncat (arglist, target, mode)
/* If the requested length is zero, or the src parameter string
length is zero, return the dst parameter. */
- if ((TREE_CODE (len) == INTEGER_CST && integer_zerop (len))
- || (p && *p == '\0'))
+ if (integer_zerop (len) || (p && *p == '\0'))
{
/* Evaluate and ignore the src and len parameters in case
they have side-effects. */