aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-nrv.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-nrv.cc')
-rw-r--r--gcc/tree-nrv.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-nrv.cc b/gcc/tree-nrv.cc
index b96d5b8..1faa481 100644
--- a/gcc/tree-nrv.cc
+++ b/gcc/tree-nrv.cc
@@ -125,9 +125,9 @@ public:
{}
/* opt_pass methods: */
- virtual bool gate (function *) { return optimize > 0; }
+ bool gate (function *) final override { return optimize > 0; }
- virtual unsigned int execute (function *);
+ unsigned int execute (function *) final override;
}; // class pass_nrv
@@ -344,7 +344,7 @@ public:
{}
/* opt_pass methods: */
- virtual unsigned int execute (function *);
+ unsigned int execute (function *) final override;
}; // class pass_return_slot