diff options
author | vries <vries@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-04-17 09:26:50 +0000 |
---|---|---|
committer | vries <vries@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-04-17 09:26:50 +0000 |
commit | 4036aeb0fb3b3765d257383b1a55af043c23988d (patch) | |
tree | 37cc3da3b1e49c1cbab2ac01cbed05e03eea3bc1 /gcc/calls.c | |
parent | 0de0b9878c6bf0d5dff338934492445d10051630 (diff) | |
download | gcc-4036aeb0fb3b3765d257383b1a55af043c23988d.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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222172 138bc75d-0d04-0410-961f-82ee72b054a4
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)); |