diff options
author | Volker Reichelt <reichelt@igpm.rwth-aachen.de> | 2005-08-16 22:05:14 +0000 |
---|---|---|
committer | Volker Reichelt <reichelt@gcc.gnu.org> | 2005-08-16 22:05:14 +0000 |
commit | 3a69437a558c349d1ddfbf8a38a91b914bcb092b (patch) | |
tree | 1589236283ce774ae9eb94df22f3ef63feae735f /gcc/fold-const.c | |
parent | 8e1c3891ceb6f0f9c42f348691cd54ae8957dacb (diff) | |
download | gcc-3a69437a558c349d1ddfbf8a38a91b914bcb092b.zip gcc-3a69437a558c349d1ddfbf8a38a91b914bcb092b.tar.gz gcc-3a69437a558c349d1ddfbf8a38a91b914bcb092b.tar.bz2 |
* fold-const.c (fold_ternary): Simplify folding of a CALL_EXPR.
From-SVN: r103176
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 84dad8b..1ce20b9 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: |