diff options
author | Tom de Vries <tom@codesourcery.com> | 2015-04-17 09:26:50 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2015-04-17 09:26:50 +0000 |
commit | 1691b2e1ca494eee178a70c73c0f941ff27118f6 (patch) | |
tree | 37cc3da3b1e49c1cbab2ac01cbed05e03eea3bc1 /gcc/calls.c | |
parent | 302f08072ff5559a762baed4bde399852c0960be (diff) | |
download | gcc-1691b2e1ca494eee178a70c73c0f941ff27118f6.tar.gz |
Handle internal_fn in operand_equal_p
2015-04-17 Tom de Vries <tom@codesourcery.com>
* fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
* calls.c (call_expr_flags): Same.
From-SVN: r222172
Diffstat (limited to 'gcc/calls.c')
-rw-r--r-- | gcc/calls.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/calls.c b/gcc/calls.c index 32ea4eb1f54..3be7ca5f4a5 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -847,6 +847,8 @@ call_expr_flags (const_tree t) if (decl) flags = flags_from_decl_or_type (decl); + else if (CALL_EXPR_FN (t) == NULL_TREE) + flags = internal_fn_flags (CALL_EXPR_IFN (t)); else { t = TREE_TYPE (CALL_EXPR_FN (t)); |