aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-polymorphic-call.c
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 /gcc/ipa-polymorphic-call.c
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
Diffstat (limited to 'gcc/ipa-polymorphic-call.c')
-rw-r--r--gcc/ipa-polymorphic-call.c2
1 files changed, 1 insertions, 1 deletions
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. */
}