aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>2005-08-16 22:05:14 +0000
committerVolker Reichelt <reichelt@igpm.rwth-aachen.de>2005-08-16 22:05:14 +0000
commit85cb280e4949a35e4114f8a9b53574a0e91e9fc2 (patch)
tree1589236283ce774ae9eb94df22f3ef63feae735f /gcc/fold-const.c
parent7943bb4ab880dfabb6e1784515b9adff3eb8d3ec (diff)
* fold-const.c (fold_ternary): Simplify folding of a CALL_EXPR.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@103176 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index 84dad8b7fb7..1ce20b94e56 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -10115,13 +10115,7 @@ fold_ternary (enum tree_code code, tree type, tree op0, tree op1, tree op2)
if (TREE_CODE (op0) == ADDR_EXPR
&& TREE_CODE (TREE_OPERAND (op0, 0)) == FUNCTION_DECL
&& DECL_BUILT_IN (TREE_OPERAND (op0, 0)))
- {
- tree fndecl = TREE_OPERAND (op0, 0);
- tree arglist = op1;
- tree tmp = fold_builtin (fndecl, arglist, false);
- if (tmp)
- return tmp;
- }
+ return fold_builtin (TREE_OPERAND (op0, 0), op1, false);
return NULL_TREE;
case BIT_FIELD_REF: