From: Jakub Jelinek Date: Fri, 8 Dec 2017 16:47:06 +0000 (+0100) Subject: ipa-polymorphic-call.c (noncall_stmt_may_be_vtbl_ptr_store): Fix a comment typo,... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=450aa0ee3d0f65be4288e8355d8923db5915baa6;p=gcc.git ipa-polymorphic-call.c (noncall_stmt_may_be_vtbl_ptr_store): Fix a comment typo, get_base_ref_and_offset -> get_ref_base_and_extent. * ipa-polymorphic-call.c (noncall_stmt_may_be_vtbl_ptr_store): Fix a comment typo, get_base_ref_and_offset -> get_ref_base_and_extent. * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Likewise. From-SVN: r255513 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bf4dc004994..c0d1662854e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-12-08 Jakub Jelinek + + * ipa-polymorphic-call.c (noncall_stmt_may_be_vtbl_ptr_store): Fix + a comment typo, get_base_ref_and_offset -> get_ref_base_and_extent. + * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Likewise. + 2017-12-08 Richard Biener PR middle-end/81782 diff --git a/gcc/ipa-polymorphic-call.c b/gcc/ipa-polymorphic-call.c index 1c5aca4abdc..2978fa36089 100644 --- a/gcc/ipa-polymorphic-call.c +++ b/gcc/ipa-polymorphic-call.c @@ -1149,7 +1149,7 @@ noncall_stmt_may_be_vtbl_ptr_store (gimple *stmt) if (TREE_CODE (lhs) == COMPONENT_REF && !DECL_VIRTUAL_P (TREE_OPERAND (lhs, 1))) return false; - /* In the future we might want to use get_base_ref_and_offset to find + /* In the future we might want to use get_ref_base_and_extent to find if there is a field corresponding to the offset and if so, proceed almost like if it was a component ref. */ } diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index 31879a747c0..ddbef7ff22d 100644 --- a/gcc/ipa-prop.c +++ b/gcc/ipa-prop.c @@ -652,7 +652,7 @@ stmt_may_be_vtbl_ptr_store (gimple *stmt) if (TREE_CODE (lhs) == COMPONENT_REF && !DECL_VIRTUAL_P (TREE_OPERAND (lhs, 1))) return false; - /* In the future we might want to use get_base_ref_and_offset to find + /* In the future we might want to use get_ref_base_and_extent to find if there is a field corresponding to the offset and if so, proceed almost like if it was a component ref. */ }