diff --git a/test/gtest/visitor.cpp b/test/gtest/visitor.cpp index 224350a6d1..4921ed9c49 100644 --- a/test/gtest/visitor.cpp +++ b/test/gtest/visitor.cpp @@ -77,7 +77,7 @@ struct MultiVisitModifier : public Modifier, } } - bool preorder(IR::PathExpression *path) { + bool preorder(IR::PathExpression *path) override { visit_def(path); return true; }