diff options
| author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-01-26 14:47:12 +0000 |
|---|---|---|
| committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-01-26 14:47:12 +0000 |
| commit | b527e67ea945c358070b842938992c31a40b01f5 (patch) | |
| tree | 1c2171c2165c9a5758cef68edfa43d4e2b938b0e /gcc/builtins.c | |
| parent | 4c43fad45e2448e9751f716edb2f4a8cfbeec0c8 (diff) | |
| download | gcc-b527e67ea945c358070b842938992c31a40b01f5.tar.gz | |
* builtins.c (expand_builtin_strncat): Remove redundant check for
INTEGER_CST.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49246 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/builtins.c')
| -rw-r--r-- | gcc/builtins.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c index 0747806fff0..e3adb05feeb 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. */ |
