aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2017-12-08 17:47:06 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2017-12-08 17:47:06 +0100
commit450aa0ee3d0f65be4288e8355d8923db5915baa6 (patch)
tree6c9c8d68a77d347006991ff575f07afee19dd995
parent68e6d5a6bdd07248e78eccbd19eb282a9531fd7c (diff)
downloadgcc-450aa0ee3d0f65be4288e8355d8923db5915baa6.zip
gcc-450aa0ee3d0f65be4288e8355d8923db5915baa6.tar.gz
gcc-450aa0ee3d0f65be4288e8355d8923db5915baa6.tar.bz2
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
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/ipa-polymorphic-call.c2
-rw-r--r--gcc/ipa-prop.c2
3 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index bf4dc00..c0d1662 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2017-12-08 Jakub Jelinek <jakub@redhat.com>
+
+ * 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 <rguenther@suse.de>
PR middle-end/81782
diff --git a/gcc/ipa-polymorphic-call.c b/gcc/ipa-polymorphic-call.c
index 1c5aca4..2978fa3 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 31879a7..ddbef7f 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. */
}