Clang produces -Winconsistent-missing-override for a member function
in i386.cc. This patch adds the override keyword for this function.
This has no effect on functionality.
Pushed as obvious.
gcc/ChangeLog:
* config/i386/i386.cc: Add a missing override keyword for a
member functions.
Signed-off-by: Filip Kastl <[email protected]>
---
gcc/config/i386/i386.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gcc/config/i386/i386.cc b/gcc/config/i386/i386.cc
index 2aad91ecf46..fdd7bcc020a 100644
--- a/gcc/config/i386/i386.cc
+++ b/gcc/config/i386/i386.cc
@@ -26560,7 +26560,8 @@ public:
stmt_vec_info stmt_info, slp_tree node,
tree vectype, int misalign,
vect_cost_model_location where) override;
- unsigned int add_slp_cost (slp_tree, const array_slice<stmt_info_for_cost>
&);
+ unsigned int add_slp_cost (slp_tree,
+ const array_slice<stmt_info_for_cost> &) override;
void finish_cost (const vector_costs *) override;
bool better_main_loop_than_p (const vector_costs *) const override;
bool better_epilogue_loop_than_p (const vector_costs *other,
--
2.55.0