aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-copy.c
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2020-04-22 12:22:55 +0200
committerAldy Hernandez <aldyh@redhat.com>2020-04-22 14:17:52 +0200
commit31445ce3c2b77d8c0e3f347f4a8cd14c28f4b237 (patch)
treed6d5601a92f9a5edd7837b7003166c3c3037919b /gcc/tree-ssa-copy.c
parentfaf33902ff37b9a24fe55955d74d7445c59be04d (diff)
downloadgcc-31445ce3c2b77d8c0e3f347f4a8cd14c28f4b237.zip
gcc-31445ce3c2b77d8c0e3f347f4a8cd14c28f4b237.tar.gz
gcc-31445ce3c2b77d8c0e3f347f4a8cd14c28f4b237.tar.bz2
Add STMT argument to substitute_and_fold_engine::get_value().
Diffstat (limited to 'gcc/tree-ssa-copy.c')
-rw-r--r--gcc/tree-ssa-copy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-copy.c b/gcc/tree-ssa-copy.c
index 71e51fa..9bcb708 100644
--- a/gcc/tree-ssa-copy.c
+++ b/gcc/tree-ssa-copy.c
@@ -492,13 +492,13 @@ init_copy_prop (void)
class copy_folder : public substitute_and_fold_engine
{
public:
- tree get_value (tree) FINAL OVERRIDE;
+ tree get_value (tree, gimple *) FINAL OVERRIDE;
};
/* Callback for substitute_and_fold to get at the final copy-of values. */
tree
-copy_folder::get_value (tree name)
+copy_folder::get_value (tree name, gimple *stmt ATTRIBUTE_UNUSED)
{
tree val;
if (SSA_NAME_VERSION (name) >= n_copy_of)